#254F88#254F88

#254F88 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.8% C 0.106 H 256.8°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#254F88
RGBrgb(37, 79, 136)
HSLhsl(215, 57%, 34%)
HSVhsv(215, 73%, 53%)
CMYKcmyk(72.8%, 41.9%, 0%, 46.7%)
CIE-LABlab(33.48, 5.85, -36.11)
CIE-LCHlch(33.48, 36.58, 279.20°)
OKLaboklab(42.81% -0.0242 -0.103)
OKLCHoklch(42.81% 0.106 256.8)
XYZxyz(8.0012, 7.7620, 24.3643)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F88 #885E25
analogous
#258188 #254F88 #2D2588
triadic
#254F88 #88254F #4F8825
tetradic
#254F88 #882581 #885E25 #25882D
square
#254F88 #882581 #885E25 #25882D
split-complementary
#254F88 #882D25 #818825
monochromatic
#0B1728 #183358 #254F88 #326BB8 #568AD1

Accessibility & contrast

On white

8.23
#254F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254F88
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F88#FFFFFF#000000##FFFFFF
##254F881.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34548A
Deuteranopia (green-blind)
#244B87
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254f88;
/* rgb */ color: rgb(37, 79, 136);
/* oklch */ color: oklch(42.8% 0.106 256.8);
Tailwind
colors: {
  custom: {
    50: '#6d7fab',
    500: '#254f88',
    950: '#000000',
  },
}
SCSS
$custom: #254f88;
$custom-light: #6d7fab;
$custom-dark: #000000;
JSON
{
  "hex": "#254f88",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 136
  },
  "hsl": {
    "h": 214.545,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42809,
    "c": 0.10583,
    "h": 256.8
  },
  "luminance": 0.07763
}

Semantic roles & 50–950 ramp

primary
#254F88
secondary
#B68C53
accent
#A047E0
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #254F88

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

Preview Lab → · Contrast checker → · Palette generator →

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