#252BA2#252BA2

#252BA2 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.186 H 271.2°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#252BA2
RGBrgb(37, 43, 162)
HSLhsl(237, 63%, 39%)
HSVhsv(237, 77%, 64%)
CMYKcmyk(77.2%, 73.5%, 0%, 36.5%)
CIE-LABlab(25.95, 39.64, -64.23)
CIE-LCHlch(25.95, 75.48, 301.68°)
OKLaboklab(37.82% 0.0039 -0.186)
OKLCHoklch(37.82% 0.186 271.2)
XYZxyz(8.1462, 4.7288, 34.6588)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252BA2 #A29C25
analogous
#256AA2 #252BA2 #5E25A2
triadic
#252BA2 #A2252B #2BA225
tetradic
#252BA2 #A2256A #A29C25 #25A25E
square
#252BA2 #A2256A #A29C25 #25A25E
split-complementary
#252BA2 #A25E25 #6AA225
monochromatic
#0E113E #1A1E70 #252BA2 #343BD1 #656BDC

Accessibility & contrast

On white

10.79
#252BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#252BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252BA2
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252BA2#FFFFFF#000000##FFFFFF
##252BA21.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #252ba2;
/* rgb */ color: rgb(37, 43, 162);
/* oklch */ color: oklch(37.8% 0.186 271.2);
Tailwind
colors: {
  custom: {
    50: '#7565bf',
    500: '#252ba2',
    950: '#000000',
  },
}
SCSS
$custom: #252ba2;
$custom-light: #7565bf;
$custom-dark: #000000;
JSON
{
  "hex": "#252ba2",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 237.12,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3782,
    "c": 0.186,
    "h": 271.2
  },
  "luminance": 0.0473
}

Semantic roles & 50–950 ramp

primary
#252BA2
secondary
#C2BD61
accent
#DE42E6
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #252BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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