#252AA0#252AA0

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

Color values

HEX#252AA0
RGBrgb(37, 42, 160)
HSLhsl(238, 62%, 39%)
HSVhsv(238, 77%, 63%)
CMYKcmyk(76.9%, 73.8%, 0%, 37.3%)
CIE-LABlab(25.52, 39.54, -63.72)
CIE-LCHlch(25.52, 74.99, 301.82°)
OKLaboklab(37.45% 0.0047 -0.1845)
OKLCHoklch(37.45% 0.185 271.4)
XYZxyz(7.9339, 4.5865, 33.7180)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252AA0 #A09B25
analogous
#2567A0 #252AA0 #5D25A0
triadic
#252AA0 #A0252A #2AA025
tetradic
#252AA0 #A02567 #A09B25 #25A05D
square
#252AA0 #A02567 #A09B25 #25A05D
split-complementary
#252AA0 #A05D25 #67A025
monochromatic
#0E103D #1A1D6E #252AA0 #3239D0 #6469DB

Accessibility & contrast

On white

10.95
#252AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252AA0
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252AA0#FFFFFF#000000##FFFFFF
##252AA01.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00369E
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #252aa0;
/* rgb */ color: rgb(37, 42, 160);
/* oklch */ color: oklch(37.5% 0.185 271.4);
Tailwind
colors: {
  custom: {
    50: '#7565bd',
    500: '#252aa0',
    950: '#000000',
  },
}
SCSS
$custom: #252aa0;
$custom-light: #7565bd;
$custom-dark: #000000;
JSON
{
  "hex": "#252aa0",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 237.561,
    "s": 62.437,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37454,
    "c": 0.18452,
    "h": 271.4
  },
  "luminance": 0.04587
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #252AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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