#254579#254579

#254579 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.4% C 0.096 H 259.6°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#254579
RGBrgb(37, 69, 121)
HSLhsl(217, 53%, 31%)
HSVhsv(217, 69%, 47%)
CMYKcmyk(69.4%, 43%, 0%, 52.5%)
CIE-LABlab(29.49, 6.73, -33.17)
CIE-LCHlch(29.49, 33.85, 281.46°)
OKLaboklab(39.41% -0.0173 -0.0946)
OKLCHoklch(39.41% 0.096 259.6)
XYZxyz(6.3410, 6.0294, 18.9151)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254579 #795925
analogous
#256F79 #254579 #2F2579
triadic
#254579 #792545 #457925
tetradic
#254579 #79256F #795925 #25792F
square
#254579 #79256F #795925 #25792F
split-complementary
#254579 #792F25 #6F7925
monochromatic
#08101B #172A4A #254579 #3360A8 #4F7EC9

Accessibility & contrast

On white

9.52
#254579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#254579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254579
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254579#FFFFFF#000000##FFFFFF
##2545791.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4A7B
Deuteranopia (green-blind)
#204278
Tritanopia (blue-blind)
#005159
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #254579;
/* rgb */ color: rgb(37, 69, 121);
/* oklch */ color: oklch(39.4% 0.096 259.6);
Tailwind
colors: {
  custom: {
    50: '#6a78a0',
    500: '#254579',
    950: '#000000',
  },
}
SCSS
$custom: #254579;
$custom-light: #6a78a0;
$custom-dark: #000000;
JSON
{
  "hex": "#254579",
  "rgb": {
    "r": 37,
    "g": 69,
    "b": 121
  },
  "hsl": {
    "h": 217.143,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.39413,
    "c": 0.09615,
    "h": 259.6
  },
  "luminance": 0.0603
}

Semantic roles & 50–950 ramp

primary
#254579
secondary
#AB884E
accent
#A54BDD
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #254579

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

Preview Lab → · Contrast checker → · Palette generator →

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