#252AB1#252AB1

#252AB1 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.3% C 0.205 H 270.5°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#252AB1
RGBrgb(37, 42, 177)
HSLhsl(238, 65%, 42%)
HSVhsv(238, 79%, 69%)
CMYKcmyk(79.1%, 76.3%, 0%, 30.6%)
CIE-LABlab(27.36, 45.34, -70.94)
CIE-LCHlch(27.36, 84.19, 302.59°)
OKLaboklab(39.3% 0.0018 -0.2054)
OKLCHoklch(39.3% 0.205 270.5)
XYZxyz(9.5240, 5.2225, 42.0925)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252AB1 #B1AC25
analogous
#2570B1 #252AB1 #6625B1
triadic
#252AB1 #B1252A #2AB125
tetradic
#252AB1 #B12570 #B1AC25 #25B166
square
#252AB1 #B12570 #B1AC25 #25B166
split-complementary
#252AB1 #B16625 #70B125
monochromatic
#10124C #1A1E7E #252AB1 #3D42D6 #6F73E1

Accessibility & contrast

On white

10.27
#252AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#252AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252AB1
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252AB1#FFFFFF#000000##FFFFFF
##252AB11.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#0039AF
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #252ab1;
/* rgb */ color: rgb(37, 42, 177);
/* oklch */ color: oklch(39.3% 0.205 270.5);
Tailwind
colors: {
  custom: {
    50: '#7965ca',
    500: '#252ab1',
    950: '#000000',
  },
}
SCSS
$custom: #252ab1;
$custom-light: #7965ca;
$custom-dark: #000000;
JSON
{
  "hex": "#252ab1",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 237.857,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39303,
    "c": 0.20545,
    "h": 270.5
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#252AB1
secondary
#C8C46A
accent
#E23FE8
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #252AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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