#254087#254087

#254087 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.123 H 265.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#254087
RGBrgb(37, 64, 135)
HSLhsl(223, 57%, 34%)
HSVhsv(223, 73%, 53%)
CMYKcmyk(72.6%, 52.6%, 0%, 47.1%)
CIE-LABlab(28.92, 15.62, -42.80)
CIE-LCHlch(28.92, 45.56, 290.05°)
OKLaboklab(39.28% -0.0099 -0.123)
OKLCHoklch(39.28% 0.123 265.4)
XYZxyz(6.9680, 5.8087, 23.6709)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254087 #876C25
analogous
#257187 #254087 #3B2587
triadic
#254087 #872540 #408725
tetradic
#254087 #872571 #876C25 #25873B
square
#254087 #872571 #876C25 #25873B
split-complementary
#254087 #873B25 #718725
monochromatic
#0B1227 #182957 #254087 #3257B7 #5678D1

Accessibility & contrast

On white

9.71
#254087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#254087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254087
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254087#FFFFFF#000000##FFFFFF
##2540871.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14498A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #254087;
/* rgb */ color: rgb(37, 64, 135);
/* oklch */ color: oklch(39.3% 0.123 265.4);
Tailwind
colors: {
  custom: {
    50: '#6d74aa',
    500: '#254087',
    950: '#000000',
  },
}
SCSS
$custom: #254087;
$custom-light: #6d74aa;
$custom-dark: #000000;
JSON
{
  "hex": "#254087",
  "rgb": {
    "r": 37,
    "g": 64,
    "b": 135
  },
  "hsl": {
    "h": 223.469,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39284,
    "c": 0.12338,
    "h": 265.4
  },
  "luminance": 0.05809
}

Semantic roles & 50–950 ramp

primary
#254087
secondary
#B59A53
accent
#B648E0
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #254087

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

Preview Lab → · Contrast checker → · Palette generator →

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