#254CA3#254CA3

#254CA3 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.1% C 0.148 H 263.4°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#254CA3
RGBrgb(37, 76, 163)
HSLhsl(221, 63%, 39%)
HSVhsv(221, 77%, 64%)
CMYKcmyk(77.3%, 53.4%, 0%, 36.1%)
CIE-LABlab(34.41, 18.42, -51.01)
CIE-LCHlch(34.41, 54.23, 289.86°)
OKLaboklab(44.1% -0.017 -0.1469)
OKLCHoklch(44.1% 0.148 263.4)
XYZxyz(9.9559, 8.2054, 35.7023)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CA3 #A37C25
analogous
#258BA3 #254CA3 #3D25A3
triadic
#254CA3 #A3254C #4CA325
tetradic
#254CA3 #A3258B #A37C25 #25A33D
square
#254CA3 #A3258B #A37C25 #25A33D
split-complementary
#254CA3 #A33D25 #8BA325
monochromatic
#0E1D3F #1A3571 #254CA3 #3465D1 #668BDC

Accessibility & contrast

On white

7.95
#254CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#254CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254CA3
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CA3#FFFFFF#000000##FFFFFF
##254CA31.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D57A6
Deuteranopia (green-blind)
#004BA1
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254ca3;
/* rgb */ color: rgb(37, 76, 163);
/* oklch */ color: oklch(44.1% 0.148 263.4);
Tailwind
colors: {
  custom: {
    50: '#737dbf',
    500: '#254ca3',
    950: '#000000',
  },
}
SCSS
$custom: #254ca3;
$custom-light: #737dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#254ca3",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 163
  },
  "hsl": {
    "h": 221.429,
    "s": 63,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44099,
    "c": 0.14788,
    "h": 263.4
  },
  "luminance": 0.08207
}

Semantic roles & 50–950 ramp

primary
#254CA3
secondary
#C2A462
accent
#B342E6
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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