#254189#254189

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

Color values

HEX#254189
RGBrgb(37, 65, 137)
HSLhsl(223, 57%, 34%)
HSVhsv(223, 73%, 54%)
CMYKcmyk(73%, 52.6%, 0%, 46.3%)
CIE-LABlab(29.36, 15.72, -43.34)
CIE-LCHlch(29.36, 46.10, 289.94°)
OKLaboklab(39.66% -0.0106 -0.1245)
OKLCHoklch(39.66% 0.125 265.1)
XYZxyz(7.1670, 5.9793, 24.4385)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254189 #896D25
analogous
#257389 #254189 #3B2589
triadic
#254189 #892541 #418925
tetradic
#254189 #892573 #896D25 #25893B
square
#254189 #892573 #896D25 #25893B
split-complementary
#254189 #893B25 #738925
monochromatic
#0B1329 #182A59 #254189 #3258B9 #5779D2

Accessibility & contrast

On white

9.56
#254189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#254189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254189
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254189#FFFFFF#000000##FFFFFF
##2541891.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144A8C
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #254189;
/* rgb */ color: rgb(37, 65, 137);
/* oklch */ color: oklch(39.7% 0.125 265.1);
Tailwind
colors: {
  custom: {
    50: '#6d75ac',
    500: '#254189',
    950: '#000000',
  },
}
SCSS
$custom: #254189;
$custom-light: #6d75ac;
$custom-dark: #000000;
JSON
{
  "hex": "#254189",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 137
  },
  "hsl": {
    "h": 223.2,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39662,
    "c": 0.12499,
    "h": 265.1
  },
  "luminance": 0.0598
}

Semantic roles & 50–950 ramp

primary
#254189
secondary
#B69B54
accent
#B647E1
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #254189

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

Preview Lab → · Contrast checker → · Palette generator →

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