#254F87#254F87

#254F87 is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.7% C 0.104 H 256.5°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#254F87
RGBrgb(37, 79, 135)
HSLhsl(214, 57%, 34%)
HSVhsv(214, 73%, 53%)
CMYKcmyk(72.6%, 41.5%, 0%, 47.1%)
CIE-LABlab(33.42, 5.46, -35.59)
CIE-LCHlch(33.42, 36.01, 278.72°)
OKLaboklab(42.74% -0.0244 -0.1015)
OKLCHoklch(42.74% 0.104 256.5)
XYZxyz(7.9305, 7.7337, 23.9918)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F87 #875D25
analogous
#258087 #254F87 #2C2587
triadic
#254F87 #87254F #4F8725
tetradic
#254F87 #872580 #875D25 #25872C
square
#254F87 #872580 #875D25 #25872C
split-complementary
#254F87 #872C25 #808725
monochromatic
#0B1727 #183357 #254F87 #326BB7 #568AD1

Accessibility & contrast

On white

8.24
#254F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#254F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F87
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F87#FFFFFF#000000##FFFFFF
##254F871.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355489
Deuteranopia (green-blind)
#254A86
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254f87;
/* rgb */ color: rgb(37, 79, 135);
/* oklch */ color: oklch(42.7% 0.104 256.5);
Tailwind
colors: {
  custom: {
    50: '#6c7faa',
    500: '#254f87',
    950: '#000000',
  },
}
SCSS
$custom: #254f87;
$custom-light: #6c7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#254f87",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 135
  },
  "hsl": {
    "h": 214.286,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42743,
    "c": 0.10441,
    "h": 256.5
  },
  "luminance": 0.07735
}

Semantic roles & 50–950 ramp

primary
#254F87
secondary
#B58B53
accent
#9F48E0
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #254F87

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

Preview Lab → · Contrast checker → · Palette generator →

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