#254E87#254E87

#254E87 is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.5% C 0.106 H 257.2°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#254E87
RGBrgb(37, 78, 135)
HSLhsl(215, 57%, 34%)
HSVhsv(215, 73%, 53%)
CMYKcmyk(72.6%, 42.2%, 0%, 47.1%)
CIE-LABlab(33.12, 6.12, -36.08)
CIE-LCHlch(33.12, 36.59, 279.63°)
OKLaboklab(42.51% -0.0234 -0.103)
OKLCHoklch(42.51% 0.106 257.2)
XYZxyz(7.8589, 7.5905, 23.9679)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E87 #875E25
analogous
#257F87 #254E87 #2D2587
triadic
#254E87 #87254E #4E8725
tetradic
#254E87 #87257F #875E25 #25872D
square
#254E87 #87257F #875E25 #25872D
split-complementary
#254E87 #872D25 #7F8725
monochromatic
#0B1627 #183257 #254E87 #326AB7 #5689D1

Accessibility & contrast

On white

8.34
#254E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#254E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E87
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E87#FFFFFF#000000##FFFFFF
##254E871.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335389
Deuteranopia (green-blind)
#234A86
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254e87;
/* rgb */ color: rgb(37, 78, 135);
/* oklch */ color: oklch(42.5% 0.106 257.2);
Tailwind
colors: {
  custom: {
    50: '#6c7faa',
    500: '#254e87',
    950: '#000000',
  },
}
SCSS
$custom: #254e87;
$custom-light: #6c7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#254e87",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 214.898,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42505,
    "c": 0.10559,
    "h": 257.2
  },
  "luminance": 0.07591
}

Semantic roles & 50–950 ramp

primary
#254E87
secondary
#B58C53
accent
#A048E0
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #254E87

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

Preview Lab → · Contrast checker → · Palette generator →

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