#254E96#254E96

#254E96 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.6% C 0.127 H 260.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#254E96
RGBrgb(37, 78, 150)
HSLhsl(218, 60%, 37%)
HSVhsv(218, 75%, 59%)
CMYKcmyk(75.3%, 48%, 0%, 41.2%)
CIE-LABlab(34.07, 11.99, -43.70)
CIE-LCHlch(34.07, 45.32, 285.34°)
OKLaboklab(43.55% -0.0204 -0.1254)
OKLCHoklch(43.55% 0.127 260.7)
XYZxyz(8.9904, 8.0431, 29.9269)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E96 #966D25
analogous
#258796 #254E96 #352596
triadic
#254E96 #96254E #4E9625
tetradic
#254E96 #962587 #966D25 #259635
square
#254E96 #962587 #966D25 #259635
split-complementary
#254E96 #963525 #879625
monochromatic
#0D1B34 #193465 #254E96 #3168C7 #5E8AD7

Accessibility & contrast

On white

8.05
#254E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254E96
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E96#FFFFFF#000000##FFFFFF
##254E961.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275699
Deuteranopia (green-blind)
#094B95
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254e96;
/* rgb */ color: rgb(37, 78, 150);
/* oklch */ color: oklch(43.6% 0.127 260.7);
Tailwind
colors: {
  custom: {
    50: '#707fb5',
    500: '#254e96',
    950: '#000000',
  },
}
SCSS
$custom: #254e96;
$custom-light: #707fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#254e96",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 150
  },
  "hsl": {
    "h": 218.23,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43553,
    "c": 0.12704,
    "h": 260.7
  },
  "luminance": 0.08044
}

Semantic roles & 50–950 ramp

primary
#254E96
secondary
#BC995B
accent
#AA44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #254E96

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

Preview Lab → · Contrast checker → · Palette generator →

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