#252AA1#252AA1

#252AA1 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.186 H 271.4°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#252AA1
RGBrgb(37, 42, 161)
HSLhsl(238, 63%, 39%)
HSVhsv(238, 77%, 63%)
CMYKcmyk(77%, 73.9%, 0%, 36.9%)
CIE-LABlab(25.63, 39.89, -64.15)
CIE-LCHlch(25.63, 75.54, 301.87°)
OKLaboklab(37.56% 0.0045 -0.1857)
OKLCHoklch(37.56% 0.186 271.4)
XYZxyz(8.0218, 4.6216, 34.1806)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252AA1 #A19C25
analogous
#2568A1 #252AA1 #5E25A1
triadic
#252AA1 #A1252A #2AA125
tetradic
#252AA1 #A12568 #A19C25 #25A15E
square
#252AA1 #A12568 #A19C25 #25A15E
split-complementary
#252AA1 #A15E25 #68A125
monochromatic
#0E103D #1A1D6F #252AA1 #3339D0 #656ADC

Accessibility & contrast

On white

10.91
#252AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#252AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252AA1
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252AA1#FFFFFF#000000##FFFFFF
##252AA11.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #252aa1;
/* rgb */ color: rgb(37, 42, 161);
/* oklch */ color: oklch(37.6% 0.186 271.4);
Tailwind
colors: {
  custom: {
    50: '#7565be',
    500: '#252aa1',
    950: '#000000',
  },
}
SCSS
$custom: #252aa1;
$custom-light: #7565be;
$custom-dark: #000000;
JSON
{
  "hex": "#252aa1",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 237.581,
    "s": 62.626,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37561,
    "c": 0.18577,
    "h": 271.4
  },
  "luminance": 0.04622
}

Semantic roles & 50–950 ramp

primary
#252AA1
secondary
#C1BD61
accent
#DF42E6
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #252AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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