#254CA2#254CA2

#254CA2 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.0% C 0.146 H 263.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#254CA2
RGBrgb(37, 76, 162)
HSLhsl(221, 63%, 39%)
HSVhsv(221, 77%, 64%)
CMYKcmyk(77.2%, 53.1%, 0%, 36.5%)
CIE-LABlab(34.33, 18.03, -50.52)
CIE-LCHlch(34.33, 53.65, 289.64°)
OKLaboklab(44.02% -0.0171 -0.1455)
OKLCHoklch(44.02% 0.146 263.3)
XYZxyz(9.8667, 8.1697, 35.2323)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CA2 #A27B25
analogous
#258BA2 #254CA2 #3D25A2
triadic
#254CA2 #A2254C #4CA225
tetradic
#254CA2 #A2258B #A27B25 #25A23D
square
#254CA2 #A2258B #A27B25 #25A23D
split-complementary
#254CA2 #A23D25 #8BA225
monochromatic
#0E1D3E #1A3570 #254CA2 #3465D1 #658ADC

Accessibility & contrast

On white

7.97
#254CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#254CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254CA2
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CA2#FFFFFF#000000##FFFFFF
##254CA21.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F57A5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254ca2;
/* rgb */ color: rgb(37, 76, 162);
/* oklch */ color: oklch(44.0% 0.146 263.3);
Tailwind
colors: {
  custom: {
    50: '#737dbe',
    500: '#254ca2',
    950: '#000000',
  },
}
SCSS
$custom: #254ca2;
$custom-light: #737dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#254ca2",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 162
  },
  "hsl": {
    "h": 221.28,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44021,
    "c": 0.14649,
    "h": 263.3
  },
  "luminance": 0.08171
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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