#254989#254989

#254989 is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.5% C 0.115 H 260.9°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#254989
RGBrgb(37, 73, 137)
HSLhsl(218, 57%, 34%)
HSVhsv(218, 73%, 54%)
CMYKcmyk(73%, 46.7%, 0%, 46.3%)
CIE-LABlab(31.72, 10.26, -39.53)
CIE-LCHlch(31.72, 40.84, 284.55°)
OKLaboklab(41.47% -0.0181 -0.1132)
OKLCHoklch(41.47% 0.115 260.9)
XYZxyz(7.6592, 6.9637, 24.6025)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254989 #896525
analogous
#257B89 #254989 #332589
triadic
#254989 #892549 #498925
tetradic
#254989 #89257B #896525 #258933
square
#254989 #89257B #896525 #258933
split-complementary
#254989 #893325 #7B8925
monochromatic
#0B1629 #182F59 #254989 #3263B9 #5783D2

Accessibility & contrast

On white

8.78
#254989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#254989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254989
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254989#FFFFFF#000000##FFFFFF
##2549891.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29508B
Deuteranopia (green-blind)
#144688
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #254989;
/* rgb */ color: rgb(37, 73, 137);
/* oklch */ color: oklch(41.5% 0.115 260.9);
Tailwind
colors: {
  custom: {
    50: '#6d7bac',
    500: '#254989',
    950: '#000000',
  },
}
SCSS
$custom: #254989;
$custom-light: #6d7bac;
$custom-dark: #000000;
JSON
{
  "hex": "#254989",
  "rgb": {
    "r": 37,
    "g": 73,
    "b": 137
  },
  "hsl": {
    "h": 218.4,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4147,
    "c": 0.11463,
    "h": 260.9
  },
  "luminance": 0.06965
}

Semantic roles & 50–950 ramp

primary
#254989
secondary
#B69354
accent
#A947E1
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254989

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

Preview Lab → · Contrast checker → · Palette generator →

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