#254B97#254B97

#254B97 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.0% C 0.132 H 262.3°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#254B97
RGBrgb(37, 75, 151)
HSLhsl(220, 61%, 37%)
HSVhsv(220, 75%, 59%)
CMYKcmyk(75.5%, 50.3%, 0%, 40.8%)
CIE-LABlab(33.26, 14.40, -45.62)
CIE-LCHlch(33.26, 47.83, 287.52°)
OKLaboklab(42.95% -0.0176 -0.1311)
OKLCHoklch(42.95% 0.132 262.3)
XYZxyz(8.8629, 7.6589, 30.2834)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254B97 #977125
analogous
#258497 #254B97 #382597
triadic
#254B97 #97254B #4B9725
tetradic
#254B97 #972584 #977125 #259738
square
#254B97 #972584 #977125 #259738
split-complementary
#254B97 #973825 #849725
monochromatic
#0D1A35 #193366 #254B97 #3163C8 #5F87D8

Accessibility & contrast

On white

8.29
#254B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#254B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254B97
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254B97#FFFFFF#000000##FFFFFF
##254B971.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F549A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254b97;
/* rgb */ color: rgb(37, 75, 151);
/* oklch */ color: oklch(43.0% 0.132 262.3);
Tailwind
colors: {
  custom: {
    50: '#707cb6',
    500: '#254b97',
    950: '#000000',
  },
}
SCSS
$custom: #254b97;
$custom-light: #707cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#254b97",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 151
  },
  "hsl": {
    "h": 220,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42954,
    "c": 0.13224,
    "h": 262.3
  },
  "luminance": 0.0766
}

Semantic roles & 50–950 ramp

primary
#254B97
secondary
#BD9C5B
accent
#AF44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254B97

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

Preview Lab → · Contrast checker → · Palette generator →

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