#254CA5#254CA5

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

Color values

HEX#254CA5
RGBrgb(37, 76, 165)
HSLhsl(222, 63%, 40%)
HSVhsv(222, 78%, 65%)
CMYKcmyk(77.6%, 53.9%, 0%, 35.3%)
CIE-LABlab(34.55, 19.20, -51.97)
CIE-LCHlch(34.55, 55.40, 290.28°)
OKLaboklab(44.26% -0.0168 -0.1497)
OKLCHoklch(44.26% 0.151 263.6)
XYZxyz(10.1365, 8.2777, 36.6535)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CA5 #A57E25
analogous
#258CA5 #254CA5 #3E25A5
triadic
#254CA5 #A5254C #4CA525
tetradic
#254CA5 #A5258C #A57E25 #25A53E
square
#254CA5 #A5258C #A57E25 #25A53E
split-complementary
#254CA5 #A53E25 #8CA525
monochromatic
#0F1E41 #1A3573 #254CA5 #3565D2 #678BDD

Accessibility & contrast

On white

7.91
#254CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254CA5
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CA5#FFFFFF#000000##FFFFFF
##254CA51.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0657A8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254ca5;
/* rgb */ color: rgb(37, 76, 165);
/* oklch */ color: oklch(44.3% 0.151 263.6);
Tailwind
colors: {
  custom: {
    50: '#737dc0',
    500: '#254ca5',
    950: '#000000',
  },
}
SCSS
$custom: #254ca5;
$custom-light: #737dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#254ca5",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 165
  },
  "hsl": {
    "h": 221.719,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44258,
    "c": 0.15067,
    "h": 263.6
  },
  "luminance": 0.08279
}

Semantic roles & 50–950 ramp

primary
#254CA5
secondary
#C3A663
accent
#B441E6
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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