#254188#254188

#254188 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.6% C 0.124 H 265.0°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#254188
RGBrgb(37, 65, 136)
HSLhsl(223, 57%, 34%)
HSVhsv(223, 73%, 53%)
CMYKcmyk(72.8%, 52.2%, 0%, 46.7%)
CIE-LABlab(29.29, 15.33, -42.84)
CIE-LCHlch(29.29, 45.49, 289.69°)
OKLaboklab(39.58% -0.0107 -0.1231)
OKLCHoklch(39.58% 0.124 265)
XYZxyz(7.0956, 5.9507, 24.0624)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254188 #886C25
analogous
#257388 #254188 #3B2588
triadic
#254188 #882541 #418825
tetradic
#254188 #882573 #886C25 #25883B
square
#254188 #882573 #886C25 #25883B
split-complementary
#254188 #883B25 #738825
monochromatic
#0B1328 #182A58 #254188 #3258B8 #5679D1

Accessibility & contrast

On white

9.59
#254188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#254188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254188
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254188#FFFFFF#000000##FFFFFF
##2541881.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164A8B
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #254188;
/* rgb */ color: rgb(37, 65, 136);
/* oklch */ color: oklch(39.6% 0.124 265.0);
Tailwind
colors: {
  custom: {
    50: '#6d75ab',
    500: '#254188',
    950: '#000000',
  },
}
SCSS
$custom: #254188;
$custom-light: #6d75ab;
$custom-dark: #000000;
JSON
{
  "hex": "#254188",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 136
  },
  "hsl": {
    "h": 223.03,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39584,
    "c": 0.12352,
    "h": 265
  },
  "luminance": 0.05951
}

Semantic roles & 50–950 ramp

primary
#254188
secondary
#B69A53
accent
#B547E0
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #254188

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

Preview Lab → · Contrast checker → · Palette generator →

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