#254F91#254F91

#254F91 is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.4% C 0.119 H 259.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#254F91
RGBrgb(37, 79, 145)
HSLhsl(217, 59%, 36%)
HSVhsv(217, 74%, 57%)
CMYKcmyk(74.5%, 45.5%, 0%, 43.1%)
CIE-LABlab(34.04, 9.36, -40.71)
CIE-LCHlch(34.04, 41.78, 282.94°)
OKLaboklab(43.43% -0.0223 -0.1166)
OKLCHoklch(43.43% 0.119 259.2)
XYZxyz(8.6679, 8.0287, 27.8754)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F91 #916725
analogous
#258591 #254F91 #312591
triadic
#254F91 #91254F #4F9125
tetradic
#254F91 #912585 #916725 #259131
square
#254F91 #912585 #916725 #259131
split-complementary
#254F91 #913125 #859125
monochromatic
#0C1A2F #193460 #254F91 #316AC2 #5B8BD5

Accessibility & contrast

On white

8.06
#254F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#254F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F91
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F91#FFFFFF#000000##FFFFFF
##254F911.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5594
Deuteranopia (green-blind)
#194B90
Tritanopia (blue-blind)
#005E69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254f91;
/* rgb */ color: rgb(37, 79, 145);
/* oklch */ color: oklch(43.4% 0.119 259.2);
Tailwind
colors: {
  custom: {
    50: '#6e7fb2',
    500: '#254f91',
    950: '#000000',
  },
}
SCSS
$custom: #254f91;
$custom-light: #6e7fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#254f91",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 145
  },
  "hsl": {
    "h": 216.667,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43425,
    "c": 0.11868,
    "h": 259.2
  },
  "luminance": 0.0803
}

Semantic roles & 50–950 ramp

primary
#254F91
secondary
#BA9458
accent
#A545E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #254F91

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

Preview Lab → · Contrast checker → · Palette generator →

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