#254CA6#254CA6

#254CA6 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.3% C 0.152 H 263.7°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#254CA6
RGBrgb(37, 76, 166)
HSLhsl(222, 64%, 40%)
HSVhsv(222, 78%, 65%)
CMYKcmyk(77.7%, 54.2%, 0%, 34.9%)
CIE-LABlab(34.63, 19.59, -52.44)
CIE-LCHlch(34.63, 55.98, 290.49°)
OKLaboklab(44.34% -0.0167 -0.1511)
OKLCHoklch(44.34% 0.152 263.7)
XYZxyz(10.2279, 8.3142, 37.1348)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CA6 #A67F25
analogous
#258DA6 #254CA6 #3E25A6
triadic
#254CA6 #A6254C #4CA625
tetradic
#254CA6 #A6258D #A67F25 #25A63E
square
#254CA6 #A6258D #A67F25 #25A63E
split-complementary
#254CA6 #A63E25 #8DA625
monochromatic
#0F1E42 #1A3574 #254CA6 #3665D2 #688CDD

Accessibility & contrast

On white

7.89
#254CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#254CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254CA6
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CA6#FFFFFF#000000##FFFFFF
##254CA61.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0358A9
Deuteranopia (green-blind)
#004CA4
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254ca6;
/* rgb */ color: rgb(37, 76, 166);
/* oklch */ color: oklch(44.3% 0.152 263.7);
Tailwind
colors: {
  custom: {
    50: '#747dc1',
    500: '#254ca6',
    950: '#000000',
  },
}
SCSS
$custom: #254ca6;
$custom-light: #747dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#254ca6",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 166
  },
  "hsl": {
    "h": 221.86,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44338,
    "c": 0.15205,
    "h": 263.7
  },
  "luminance": 0.08315
}

Semantic roles & 50–950 ramp

primary
#254CA6
secondary
#C3A664
accent
#B541E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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