#254887#254887

#254887 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.1% C 0.113 H 261.1°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#254887
RGBrgb(37, 72, 135)
HSLhsl(219, 57%, 34%)
HSVhsv(219, 73%, 53%)
CMYKcmyk(72.6%, 46.7%, 0%, 47.1%)
CIE-LABlab(31.29, 10.15, -38.99)
CIE-LCHlch(31.29, 40.29, 284.59°)
OKLaboklab(41.1% -0.0175 -0.1116)
OKLCHoklch(41.1% 0.113 261.1)
XYZxyz(7.4519, 6.7765, 23.8322)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254887 #876425
analogous
#257987 #254887 #332587
triadic
#254887 #872548 #488725
tetradic
#254887 #872579 #876425 #258733
square
#254887 #872579 #876425 #258733
split-complementary
#254887 #873325 #798725
monochromatic
#0B1527 #182E57 #254887 #3262B7 #5682D1

Accessibility & contrast

On white

8.92
#254887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#254887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254887
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254887#FFFFFF#000000##FFFFFF
##2548871.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E89
Deuteranopia (green-blind)
#154586
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #254887;
/* rgb */ color: rgb(37, 72, 135);
/* oklch */ color: oklch(41.1% 0.113 261.1);
Tailwind
colors: {
  custom: {
    50: '#6c7aaa',
    500: '#254887',
    950: '#000000',
  },
}
SCSS
$custom: #254887;
$custom-light: #6c7aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#254887",
  "rgb": {
    "r": 37,
    "g": 72,
    "b": 135
  },
  "hsl": {
    "h": 218.571,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41096,
    "c": 0.11299,
    "h": 261.1
  },
  "luminance": 0.06777
}

Semantic roles & 50–950 ramp

primary
#254887
secondary
#B59253
accent
#AA48E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254887

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

Preview Lab → · Contrast checker → · Palette generator →

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