#254E91#254E91

#254E91 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.120 H 259.8°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#254E91
RGBrgb(37, 78, 145)
HSLhsl(217, 59%, 36%)
HSVhsv(217, 74%, 57%)
CMYKcmyk(74.5%, 46.2%, 0%, 43.1%)
CIE-LABlab(33.74, 10.03, -41.19)
CIE-LCHlch(33.74, 42.40, 283.68°)
OKLaboklab(43.19% -0.0213 -0.118)
OKLCHoklch(43.19% 0.12 259.8)
XYZxyz(8.5963, 7.8855, 27.8516)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E91 #916825
analogous
#258491 #254E91 #322591
triadic
#254E91 #91254E #4E9125
tetradic
#254E91 #912584 #916825 #259132
square
#254E91 #912584 #916825 #259132
split-complementary
#254E91 #913225 #849125
monochromatic
#0C1A2F #193460 #254E91 #3168C2 #5B8AD5

Accessibility & contrast

On white

8.15
#254E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#254E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E91
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E91#FFFFFF#000000##FFFFFF
##254E911.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5594
Deuteranopia (green-blind)
#164B90
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254e91;
/* rgb */ color: rgb(37, 78, 145);
/* oklch */ color: oklch(43.2% 0.120 259.8);
Tailwind
colors: {
  custom: {
    50: '#6f7fb2',
    500: '#254e91',
    950: '#000000',
  },
}
SCSS
$custom: #254e91;
$custom-light: #6f7fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#254e91",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 145
  },
  "hsl": {
    "h": 217.222,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43194,
    "c": 0.11991,
    "h": 259.8
  },
  "luminance": 0.07886
}

Semantic roles & 50–950 ramp

primary
#254E91
secondary
#BA9558
accent
#A745E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #254E91

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

Preview Lab → · Contrast checker → · Palette generator →

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