#0271AD

Closest named color: Mid Blue (#276AB3). oklch(52.7% 0.126 242.7), rgb(2, 113, 173).

Aa

White text reads best on this color (5.29:1).

About this color

#0271AD is a medium-dark, moderately saturated blue. In OKLCH its lightness is 53%, its chroma 0.126 and its hue 243°. Its hue sits on the cool side of the wheel. The nearest named color is Mid Blue (#276AB3), ΔE 0.026 away. White text reads best on it, at 5.29:1.

Hue familyBlues
Lightnessmedium-dark (53%)
Chromamoderately saturated (0.126)
Temperaturecool
Nearest nameMid Blue (#276AB3)
Black text3.96:1
White text5.29:1

Values

HEX#0271AD
RGBrgb(2, 113, 173)
HSLhsl(201, 98%, 34%)
OKLCHoklch(52.7% 0.126 242.7)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #0271AD 5.29:1 AA Lc -81.1 Fine for body text
Black text on #0271AD 3.96:1 AA large text Lc 28.4 Dividers and decoration only
#0271AD text on white 5.29:1 AA Lc 75.7 Fine for body text
#0271AD text on black 3.96:1 AA large text Lc -26.0 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 600.

  1. Step 50

    50

    #F1F6FA

    oklch(97.1% 0.008 241.7)

  2. Step 100

    100

    #E1EBF4

    oklch(93.5% 0.016 245.1)

  3. Step 200

    200

    #C8DCED

    oklch(88.5% 0.032 243.7)

  4. Step 300

    300

    #A1C6E3

    oklch(80.9% 0.057 242)

  5. Step 400

    400

    #6CA7D5

    oklch(70.6% 0.091 243.1)

  6. Step 500

    500

    #4191CA

    oklch(63.2% 0.116 242.7)

  7. Step 600

    600 (this color)

    #0271AD

    oklch(52.7% 0.126 242.7)

  8. Step 700

    700

    #02669D

    oklch(49% 0.117 242.9)

  9. Step 800

    800

    #0C547F

    oklch(42.8% 0.096 242.2)

  10. Step 900

    900

    #154566

    oklch(37.5% 0.076 243)

  11. Step 950

    950

    #0E293C

    oklch(27% 0.048 242.2)

Export this scale for Tailwind in the Tailwind colors tool

#0271AD with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#5473B00.057
Deuteranopia (no green cones)#3D65AC0.042
Tritanopia (no blue cones)#0080870.085
Achromatopsia (no color)#6B6B6B0.126

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #0271AD

    #0271AD

    oklch(52.7% 0.126 242.7)

  • #9A5800

    #9A5800

    oklch(52.5% 0.12 62.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0271AD

    #0271AD

    oklch(52.7% 0.126 242.7)

  • #00788A

    #00788A

    oklch(52.6% 0.092 212.8)

  • #5363B3

    #5363B3

    oklch(52.6% 0.127 272.8)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #0271AD

    #0271AD

    oklch(52.7% 0.126 242.7)

  • #A74B38

    #A74B38

    oklch(52.7% 0.126 33.2)

  • #816800

    #816800

    oklch(52.7% 0.108 92.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0271AD

    #0271AD

    oklch(52.7% 0.126 242.7)

  • #A44764

    #A44764

    oklch(52.7% 0.126 2.8)

  • #5E7607

    #5E7607

    oklch(52.8% 0.127 122.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0271AD

    #0271AD

    oklch(52.7% 0.126 242.7)

  • #944C8A

    #944C8A

    oklch(52.6% 0.126 332.6)

  • #9A5800

    #9A5800

    oklch(52.5% 0.12 62.7)

  • #1A7F46

    #1A7F46

    oklch(52.7% 0.126 152.9)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #0271AD, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #0271AD in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.