#254CA7#254CA7

#254CA7 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.153 H 263.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#254CA7
RGBrgb(37, 76, 167)
HSLhsl(222, 64%, 40%)
HSVhsv(222, 78%, 65%)
CMYKcmyk(77.8%, 54.5%, 0%, 34.5%)
CIE-LABlab(34.70, 19.98, -52.92)
CIE-LCHlch(34.70, 56.57, 290.69°)
OKLaboklab(44.42% -0.0166 -0.1525)
OKLCHoklch(44.42% 0.153 263.8)
XYZxyz(10.3200, 8.3510, 37.6197)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CA7 #A78025
analogous
#258DA7 #254CA7 #3F25A7
triadic
#254CA7 #A7254C #4CA725
tetradic
#254CA7 #A7258D #A78025 #25A73F
square
#254CA7 #A7258D #A78025 #25A73F
split-complementary
#254CA7 #A73F25 #8DA725
monochromatic
#0F1E43 #1A3575 #254CA7 #3765D3 #698CDE

Accessibility & contrast

On white

7.86
#254CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#254CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254CA7
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CA7#FFFFFF#000000##FFFFFF
##254CA71.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254ca7;
/* rgb */ color: rgb(37, 76, 167);
/* oklch */ color: oklch(44.4% 0.153 263.8);
Tailwind
colors: {
  custom: {
    50: '#747dc2',
    500: '#254ca7',
    950: '#000000',
  },
}
SCSS
$custom: #254ca7;
$custom-light: #747dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#254ca7",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 167
  },
  "hsl": {
    "h": 222,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.44418,
    "c": 0.15344,
    "h": 263.8
  },
  "luminance": 0.08352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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