#254F81#254F81

#254F81 is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.4% C 0.096 H 254.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#254F81
RGBrgb(37, 79, 129)
HSLhsl(213, 55%, 33%)
HSVhsv(213, 71%, 51%)
CMYKcmyk(71.3%, 38.8%, 0%, 49.4%)
CIE-LABlab(33.07, 3.14, -32.45)
CIE-LCHlch(33.07, 32.60, 275.53°)
OKLaboklab(42.35% -0.0259 -0.0923)
OKLCHoklch(42.35% 0.096 254.3)
XYZxyz(7.5199, 7.5695, 21.8294)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F81 #815725
analogous
#257D81 #254F81 #292581
triadic
#254F81 #81254F #4F8125
tetradic
#254F81 #81257D #815725 #258129
square
#254F81 #81257D #815725 #258129
split-complementary
#254F81 #812925 #7D8125
monochromatic
#0A1522 #173251 #254F81 #336CB1 #538BCE

Accessibility & contrast

On white

8.35
#254F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#254F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F81
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F81#FFFFFF#000000##FFFFFF
##254F811.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385283
Deuteranopia (green-blind)
#2B4A80
Tritanopia (blue-blind)
#005B62
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254f81;
/* rgb */ color: rgb(37, 79, 129);
/* oklch */ color: oklch(42.4% 0.096 254.3);
Tailwind
colors: {
  custom: {
    50: '#6b80a6',
    500: '#254f81',
    950: '#000000',
  },
}
SCSS
$custom: #254f81;
$custom-light: #6b80a6;
$custom-dark: #000000;
JSON
{
  "hex": "#254f81",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 129
  },
  "hsl": {
    "h": 212.609,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42354,
    "c": 0.0959,
    "h": 254.3
  },
  "luminance": 0.0757
}

Semantic roles & 50–950 ramp

primary
#254F81
secondary
#B28550
accent
#9A49DF
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #254F81

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#254F81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva