#254187#254187

#254187 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.122 H 264.9°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#254187
RGBrgb(37, 65, 135)
HSLhsl(223, 57%, 34%)
HSVhsv(223, 73%, 53%)
CMYKcmyk(72.6%, 51.9%, 0%, 47.1%)
CIE-LABlab(29.22, 14.93, -42.33)
CIE-LCHlch(29.22, 44.89, 289.43°)
OKLaboklab(39.51% -0.0108 -0.1216)
OKLCHoklch(39.51% 0.122 264.9)
XYZxyz(7.0249, 5.9225, 23.6899)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254187 #876B25
analogous
#257287 #254187 #3A2587
triadic
#254187 #872541 #418725
tetradic
#254187 #872572 #876B25 #25873A
square
#254187 #872572 #876B25 #25873A
split-complementary
#254187 #873A25 #728725
monochromatic
#0B1327 #182A57 #254187 #3258B7 #5679D1

Accessibility & contrast

On white

9.61
#254187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#254187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254187
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254187#FFFFFF#000000##FFFFFF
##2541871.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174A8A
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00525D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #254187;
/* rgb */ color: rgb(37, 65, 135);
/* oklch */ color: oklch(39.5% 0.122 264.9);
Tailwind
colors: {
  custom: {
    50: '#6d75aa',
    500: '#254187',
    950: '#000000',
  },
}
SCSS
$custom: #254187;
$custom-light: #6d75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#254187",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 222.857,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39506,
    "c": 0.12206,
    "h": 264.9
  },
  "luminance": 0.05923
}

Semantic roles & 50–950 ramp

primary
#254187
secondary
#B59953
accent
#B548E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #254187

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

Preview Lab → · Contrast checker → · Palette generator →

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