#254287#254287

#254287 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.121 H 264.4°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#254287
RGBrgb(37, 66, 135)
HSLhsl(222, 57%, 34%)
HSVhsv(222, 73%, 53%)
CMYKcmyk(72.6%, 51.1%, 0%, 47.1%)
CIE-LABlab(29.51, 14.25, -41.86)
CIE-LCHlch(29.51, 44.22, 288.80°)
OKLaboklab(39.73% -0.0117 -0.1202)
OKLCHoklch(39.73% 0.121 264.4)
XYZxyz(7.0828, 6.0383, 23.7092)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254287 #876A25
analogous
#257387 #254287 #392587
triadic
#254287 #872542 #428725
tetradic
#254287 #872573 #876A25 #258739
square
#254287 #872573 #876A25 #258739
split-complementary
#254287 #873925 #738725
monochromatic
#0B1327 #182B57 #254287 #3259B7 #567AD1

Accessibility & contrast

On white

9.51
#254287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#254287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254287
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254287#FFFFFF#000000##FFFFFF
##2542871.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A8A
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #254287;
/* rgb */ color: rgb(37, 66, 135);
/* oklch */ color: oklch(39.7% 0.121 264.4);
Tailwind
colors: {
  custom: {
    50: '#6d75aa',
    500: '#254287',
    950: '#000000',
  },
}
SCSS
$custom: #254287;
$custom-light: #6d75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#254287",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 135
  },
  "hsl": {
    "h": 222.245,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39729,
    "c": 0.12074,
    "h": 264.4
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#254287
secondary
#B59853
accent
#B348E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #254287

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

Preview Lab → · Contrast checker → · Palette generator →

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