#254F96#254F96

#254F96 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.8% C 0.126 H 260.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#254F96
RGBrgb(37, 79, 150)
HSLhsl(218, 60%, 37%)
HSVhsv(218, 75%, 59%)
CMYKcmyk(75.3%, 47.3%, 0%, 41.2%)
CIE-LABlab(34.37, 11.32, -43.23)
CIE-LCHlch(34.37, 44.69, 284.67°)
OKLaboklab(43.78% -0.0213 -0.124)
OKLCHoklch(43.78% 0.126 260.2)
XYZxyz(9.0620, 8.1863, 29.9508)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F96 #966C25
analogous
#258896 #254F96 #342596
triadic
#254F96 #96254F #4F9625
tetradic
#254F96 #962588 #966C25 #259634
square
#254F96 #962588 #966C25 #259634
split-complementary
#254F96 #963425 #889625
monochromatic
#0D1B34 #193565 #254F96 #3169C7 #5E8BD7

Accessibility & contrast

On white

7.96
#254F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#254F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F96
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F96#FFFFFF#000000##FFFFFF
##254F961.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295699
Deuteranopia (green-blind)
#0E4C95
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254f96;
/* rgb */ color: rgb(37, 79, 150);
/* oklch */ color: oklch(43.8% 0.126 260.2);
Tailwind
colors: {
  custom: {
    50: '#707fb5',
    500: '#254f96',
    950: '#000000',
  },
}
SCSS
$custom: #254f96;
$custom-light: #707fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#254f96",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 150
  },
  "hsl": {
    "h": 217.699,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4378,
    "c": 0.12579,
    "h": 260.2
  },
  "luminance": 0.08187
}

Semantic roles & 50–950 ramp

primary
#254F96
secondary
#BC985B
accent
#A844E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #254F96

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

Preview Lab → · Contrast checker → · Palette generator →

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