#252AA8#252AA8

#252AA8 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.194 H 271.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#252AA8
RGBrgb(37, 42, 168)
HSLhsl(238, 64%, 40%)
HSVhsv(238, 78%, 66%)
CMYKcmyk(78%, 75%, 0%, 34.1%)
CIE-LABlab(26.38, 42.30, -67.16)
CIE-LCHlch(26.38, 79.37, 302.21°)
OKLaboklab(38.32% 0.0034 -0.1945)
OKLCHoklch(38.32% 0.194 271)
XYZxyz(8.6564, 4.8754, 37.5230)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252AA8 #A8A325
analogous
#256BA8 #252AA8 #6225A8
triadic
#252AA8 #A8252A #2AA825
tetradic
#252AA8 #A8256B #A8A325 #25A862
square
#252AA8 #A8256B #A8A325 #25A862
split-complementary
#252AA8 #A86225 #6BA825
monochromatic
#0F1144 #1A1D76 #252AA8 #373DD3 #696EDE

Accessibility & contrast

On white

10.63
#252AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#252AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252AA8
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252AA8#FFFFFF#000000##FFFFFF
##252AA81.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #252aa8;
/* rgb */ color: rgb(37, 42, 168);
/* oklch */ color: oklch(38.3% 0.194 271.0);
Tailwind
colors: {
  custom: {
    50: '#7765c3',
    500: '#252aa8',
    950: '#000000',
  },
}
SCSS
$custom: #252aa8;
$custom-light: #7765c3;
$custom-dark: #000000;
JSON
{
  "hex": "#252aa8",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 237.71,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38316,
    "c": 0.19449,
    "h": 271
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#252AA8
secondary
#C4C065
accent
#E141E7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #252AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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