#254B9E#254B9E

#254B9E is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.5% C 0.142 H 263.2°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#254B9E
RGBrgb(37, 75, 158)
HSLhsl(221, 62%, 38%)
HSVhsv(221, 77%, 62%)
CMYKcmyk(76.6%, 52.5%, 0%, 38%)
CIE-LABlab(33.76, 17.14, -49.05)
CIE-LCHlch(33.76, 51.96, 289.26°)
OKLaboklab(43.49% -0.0168 -0.1412)
OKLCHoklch(43.49% 0.142 263.2)
XYZxyz(9.4484, 7.8930, 33.3667)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254B9E #9E7825
analogous
#25879E #254B9E #3B259E
triadic
#254B9E #9E254B #4B9E25
tetradic
#254B9E #9E2587 #9E7825 #259E3B
square
#254B9E #9E2587 #9E7825 #259E3B
split-complementary
#254B9E #9E3B25 #879E25
monochromatic
#0E1C3B #19336C #254B9E #3163CF #6388DA

Accessibility & contrast

On white

8.14
#254B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254B9E
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254B9E#FFFFFF#000000##FFFFFF
##254B9E1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1455A1
Deuteranopia (green-blind)
#004A9C
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254b9e;
/* rgb */ color: rgb(37, 75, 158);
/* oklch */ color: oklch(43.5% 0.142 263.2);
Tailwind
colors: {
  custom: {
    50: '#727cbb',
    500: '#254b9e',
    950: '#000000',
  },
}
SCSS
$custom: #254b9e;
$custom-light: #727cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#254b9e",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 158
  },
  "hsl": {
    "h": 221.157,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43491,
    "c": 0.14215,
    "h": 263.2
  },
  "luminance": 0.07894
}

Semantic roles & 50–950 ramp

primary
#254B9E
secondary
#C0A15F
accent
#B243E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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