#254B87#254B87

#254B87 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.8% C 0.109 H 259.2°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#254B87
RGBrgb(37, 75, 135)
HSLhsl(217, 57%, 34%)
HSVhsv(217, 73%, 53%)
CMYKcmyk(72.6%, 44.4%, 0%, 47.1%)
CIE-LABlab(32.20, 8.13, -37.54)
CIE-LCHlch(32.20, 38.41, 282.22°)
OKLaboklab(41.8% -0.0204 -0.1073)
OKLCHoklch(41.8% 0.109 259.2)
XYZxyz(7.6506, 7.1739, 23.8985)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254B87 #876125
analogous
#257C87 #254B87 #302587
triadic
#254B87 #87254B #4B8725
tetradic
#254B87 #87257C #876125 #258730
square
#254B87 #87257C #876125 #258730
split-complementary
#254B87 #873025 #7C8725
monochromatic
#0B1627 #183057 #254B87 #3266B7 #5685D1

Accessibility & contrast

On white

8.62
#254B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#254B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254B87
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254B87#FFFFFF#000000##FFFFFF
##254B871.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5189
Deuteranopia (green-blind)
#1D4886
Tritanopia (blue-blind)
#005962
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254b87;
/* rgb */ color: rgb(37, 75, 135);
/* oklch */ color: oklch(41.8% 0.109 259.2);
Tailwind
colors: {
  custom: {
    50: '#6c7caa',
    500: '#254b87',
    950: '#000000',
  },
}
SCSS
$custom: #254b87;
$custom-light: #6c7caa;
$custom-dark: #000000;
JSON
{
  "hex": "#254b87",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 135
  },
  "hsl": {
    "h": 216.735,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41796,
    "c": 0.10924,
    "h": 259.2
  },
  "luminance": 0.07175
}

Semantic roles & 50–950 ramp

primary
#254B87
secondary
#B58F53
accent
#A548E0
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254B87

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

Preview Lab → · Contrast checker → · Palette generator →

#254B87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva