#254CA8#254CA8

#254CA8 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.5% C 0.155 H 263.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#254CA8
RGBrgb(37, 76, 168)
HSLhsl(222, 64%, 40%)
HSVhsv(222, 78%, 66%)
CMYKcmyk(78%, 54.8%, 0%, 34.1%)
CIE-LABlab(34.78, 20.37, -53.40)
CIE-LCHlch(34.78, 57.15, 290.88°)
OKLaboklab(44.5% -0.0165 -0.1539)
OKLCHoklch(44.5% 0.155 263.9)
XYZxyz(10.4128, 8.3882, 38.1085)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CA8 #A88125
analogous
#258EA8 #254CA8 #3F25A8
triadic
#254CA8 #A8254C #4CA825
tetradic
#254CA8 #A8258E #A88125 #25A83F
square
#254CA8 #A8258E #A88125 #25A83F
split-complementary
#254CA8 #A83F25 #8EA825
monochromatic
#0F1F44 #1A3576 #254CA8 #3766D3 #698CDE

Accessibility & contrast

On white

7.84
#254CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#254CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254CA8
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CA8#FFFFFF#000000##FFFFFF
##254CA81.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#004CA6
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254ca8;
/* rgb */ color: rgb(37, 76, 168);
/* oklch */ color: oklch(44.5% 0.155 263.9);
Tailwind
colors: {
  custom: {
    50: '#747dc3',
    500: '#254ca8',
    950: '#000000',
  },
}
SCSS
$custom: #254ca8;
$custom-light: #747dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#254ca8",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 168
  },
  "hsl": {
    "h": 222.137,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44499,
    "c": 0.15483,
    "h": 263.9
  },
  "luminance": 0.08389
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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