#252AC5#252AC5

#252AC5 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.5% C 0.229 H 269.6°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#252AC5
RGBrgb(37, 42, 197)
HSLhsl(238, 68%, 46%)
HSVhsv(238, 81%, 77%)
CMYKcmyk(81.2%, 78.7%, 0%, 22.7%)
CIE-LABlab(29.61, 51.88, -79.05)
CIE-LCHlch(29.61, 94.56, 303.28°)
OKLaboklab(41.55% -0.0017 -0.229)
OKLCHoklch(41.55% 0.229 269.6)
XYZxyz(11.6655, 6.0791, 53.3711)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252AC5 #C5C025
analogous
#257AC5 #252AC5 #7025C5
triadic
#252AC5 #C5252A #2AC525
tetradic
#252AC5 #C5257A #C5C025 #25C570
square
#252AC5 #C5257A #C5C025 #25C570
split-complementary
#252AC5 #C57025 #7AC525
monochromatic
#12145E #1B1F91 #252AC5 #4A4FDD #7E81E7

Accessibility & contrast

On white

9.48
#252AC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#252AC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252AC5
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252AC5#FFFFFF#000000##FFFFFF
##252AC51.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC9
Deuteranopia (green-blind)
#003DC2
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #252ac5;
/* rgb */ color: rgb(37, 42, 197);
/* oklch */ color: oklch(41.5% 0.229 269.6);
Tailwind
colors: {
  custom: {
    50: '#7e67d8',
    500: '#252ac5',
    950: '#000000',
  },
}
SCSS
$custom: #252ac5;
$custom-light: #7e67d8;
$custom-dark: #000000;
JSON
{
  "hex": "#252ac5",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 238.125,
    "s": 68.376,
    "l": 45.882
  },
  "oklch": {
    "l": 0.41545,
    "c": 0.22898,
    "h": 269.6
  },
  "luminance": 0.0608
}

Semantic roles & 50–950 ramp

primary
#252AC5
secondary
#CFCC77
accent
#E63DEB
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #252AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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