#252CA2#252CA2

#252CA2 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.185 H 271.1°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#252CA2
RGBrgb(37, 44, 162)
HSLhsl(237, 63%, 39%)
HSVhsv(237, 77%, 64%)
CMYKcmyk(77.2%, 72.8%, 0%, 36.5%)
CIE-LABlab(26.16, 39.04, -63.88)
CIE-LCHlch(26.16, 74.86, 301.43°)
OKLaboklab(37.97% 0.0034 -0.1849)
OKLCHoklch(37.97% 0.185 271.1)
XYZxyz(8.1830, 4.8024, 34.6711)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252CA2 #A29B25
analogous
#256BA2 #252CA2 #5D25A2
triadic
#252CA2 #A2252C #2CA225
tetradic
#252CA2 #A2256B #A29B25 #25A25D
square
#252CA2 #A2256B #A29B25 #25A25D
split-complementary
#252CA2 #A25D25 #6BA225
monochromatic
#0E113E #1A1E70 #252CA2 #343CD1 #656CDC

Accessibility & contrast

On white

10.71
#252CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#252CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252CA2
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252CA2#FFFFFF#000000##FFFFFF
##252CA21.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#0038A0
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #252ca2;
/* rgb */ color: rgb(37, 44, 162);
/* oklch */ color: oklch(38.0% 0.185 271.1);
Tailwind
colors: {
  custom: {
    50: '#7566bf',
    500: '#252ca2',
    950: '#000000',
  },
}
SCSS
$custom: #252ca2;
$custom-light: #7566bf;
$custom-dark: #000000;
JSON
{
  "hex": "#252ca2",
  "rgb": {
    "r": 37,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 236.64,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37975,
    "c": 0.18496,
    "h": 271.1
  },
  "luminance": 0.04803
}

Semantic roles & 50–950 ramp

primary
#252CA2
secondary
#C2BC61
accent
#DD42E6
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #252CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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