#252AD4#252AD4

#252AD4 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.3% C 0.246 H 269.0°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#252AD4
RGBrgb(37, 42, 212)
HSLhsl(238, 70%, 49%)
HSVhsv(238, 83%, 83%)
CMYKcmyk(82.5%, 80.2%, 0%, 16.9%)
CIE-LABlab(31.35, 56.59, -84.91)
CIE-LCHlch(31.35, 102.04, 303.68°)
OKLaboklab(43.26% -0.0044 -0.2459)
OKLCHoklch(43.26% 0.246 269)
XYZxyz(13.4705, 6.8011, 62.8774)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252AD4 #D4CF25
analogous
#2582D4 #252AD4 #7825D4
triadic
#252AD4 #D4252A #2AD425
tetradic
#252AD4 #D42582 #D4CF25 #25D478
square
#252AD4 #D42582 #D4CF25 #25D478
split-complementary
#252AD4 #D47825 #82D425
monochromatic
#13156C #1C20A0 #252AD4 #5559E1 #898CEA

Accessibility & contrast

On white

8.90
#252AD4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#252AD4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252AD4
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252AD4#FFFFFF#000000##FFFFFF
##252AD41.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053D9
Deuteranopia (green-blind)
#0040D1
Tritanopia (blue-blind)
#006080
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #252ad4;
/* rgb */ color: rgb(37, 42, 212);
/* oklch */ color: oklch(43.3% 0.246 269.0);
Tailwind
colors: {
  custom: {
    50: '#8268e3',
    500: '#252ad4',
    950: '#000000',
  },
}
SCSS
$custom: #252ad4;
$custom-light: #8268e3;
$custom-dark: #000000;
JSON
{
  "hex": "#252ad4",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 212
  },
  "hsl": {
    "h": 238.286,
    "s": 70.281,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43261,
    "c": 0.24597,
    "h": 269
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

primary
#252AD4
secondary
#D4D281
accent
#E83BED
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0616
muted
#7E7A84

Preview Lab

Preview with #252AD4

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

Preview Lab → · Contrast checker → · Palette generator →

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