#254387#254387

#254387 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.0% C 0.119 H 263.9°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#254387
RGBrgb(37, 67, 135)
HSLhsl(222, 57%, 34%)
HSVhsv(222, 73%, 53%)
CMYKcmyk(72.6%, 50.4%, 0%, 47.1%)
CIE-LABlab(29.80, 13.56, -41.39)
CIE-LCHlch(29.80, 43.55, 288.14°)
OKLaboklab(39.95% -0.0127 -0.1188)
OKLCHoklch(39.95% 0.119 263.9)
XYZxyz(7.1417, 6.1562, 23.7288)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254387 #876925
analogous
#257487 #254387 #382587
triadic
#254387 #872543 #438725
tetradic
#254387 #872574 #876925 #258738
square
#254387 #872574 #876925 #258738
split-complementary
#254387 #873825 #748725
monochromatic
#0B1327 #182B57 #254387 #325BB7 #567BD1

Accessibility & contrast

On white

9.41
#254387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#254387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254387
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254387#FFFFFF#000000##FFFFFF
##2543871.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4B89
Deuteranopia (green-blind)
#004286
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #254387;
/* rgb */ color: rgb(37, 67, 135);
/* oklch */ color: oklch(40.0% 0.119 263.9);
Tailwind
colors: {
  custom: {
    50: '#6d76aa',
    500: '#254387',
    950: '#000000',
  },
}
SCSS
$custom: #254387;
$custom-light: #6d76aa;
$custom-dark: #000000;
JSON
{
  "hex": "#254387",
  "rgb": {
    "r": 37,
    "g": 67,
    "b": 135
  },
  "hsl": {
    "h": 221.633,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39954,
    "c": 0.11944,
    "h": 263.9
  },
  "luminance": 0.06157
}

Semantic roles & 50–950 ramp

primary
#254387
secondary
#B59753
accent
#B248E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #254387

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

Preview Lab → · Contrast checker → · Palette generator →

#254387 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva