#252AA6#252AA6

#252AA6 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.192 H 271.1°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#252AA6
RGBrgb(37, 42, 166)
HSLhsl(238, 64%, 40%)
HSVhsv(238, 78%, 65%)
CMYKcmyk(77.7%, 74.7%, 0%, 34.9%)
CIE-LABlab(26.16, 41.61, -66.30)
CIE-LCHlch(26.16, 78.28, 302.11°)
OKLaboklab(38.1% 0.0037 -0.192)
OKLCHoklch(38.1% 0.192 271.1)
XYZxyz(8.4715, 4.8015, 36.5493)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252AA6 #A6A125
analogous
#256BA6 #252AA6 #6025A6
triadic
#252AA6 #A6252A #2AA625
tetradic
#252AA6 #A6256B #A6A125 #25A660
square
#252AA6 #A6256B #A6A125 #25A660
split-complementary
#252AA6 #A66025 #6BA625
monochromatic
#0F1142 #1A1D74 #252AA6 #363CD2 #686DDD

Accessibility & contrast

On white

10.71
#252AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#252AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252AA6
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252AA6#FFFFFF#000000##FFFFFF
##252AA61.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #252aa6;
/* rgb */ color: rgb(37, 42, 166);
/* oklch */ color: oklch(38.1% 0.192 271.1);
Tailwind
colors: {
  custom: {
    50: '#7665c2',
    500: '#252aa6',
    950: '#000000',
  },
}
SCSS
$custom: #252aa6;
$custom-light: #7665c2;
$custom-dark: #000000;
JSON
{
  "hex": "#252aa6",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 237.674,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38099,
    "c": 0.19202,
    "h": 271.1
  },
  "luminance": 0.04802
}

Semantic roles & 50–950 ramp

primary
#252AA6
secondary
#C3C064
accent
#E041E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #252AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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