#252AAC#252AAC

#252AAC is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.8% C 0.199 H 270.8°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#252AAC
RGBrgb(37, 42, 172)
HSLhsl(238, 65%, 41%)
HSVhsv(238, 78%, 67%)
CMYKcmyk(78.5%, 75.6%, 0%, 32.5%)
CIE-LABlab(26.81, 43.66, -68.85)
CIE-LCHlch(26.81, 81.52, 302.38°)
OKLaboklab(38.75% 0.0027 -0.1994)
OKLCHoklch(38.75% 0.199 270.8)
XYZxyz(9.0348, 5.0268, 39.5158)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252AAC #ACA725
analogous
#256DAC #252AAC #6325AC
triadic
#252AAC #AC252A #2AAC25
tetradic
#252AAC #AC256D #ACA725 #25AC63
square
#252AAC #AC256D #ACA725 #25AC63
split-complementary
#252AAC #AC6325 #6DAC25
monochromatic
#0F1147 #1A1E7A #252AAC #3A3FD5 #6C70DF

Accessibility & contrast

On white

10.47
#252AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#252AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252AAC
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252AAC#FFFFFF#000000##FFFFFF
##252AAC1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B0
Deuteranopia (green-blind)
#0039AA
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #252aac;
/* rgb */ color: rgb(37, 42, 172);
/* oklch */ color: oklch(38.8% 0.199 270.8);
Tailwind
colors: {
  custom: {
    50: '#7865c6',
    500: '#252aac',
    950: '#000000',
  },
}
SCSS
$custom: #252aac;
$custom-light: #7865c6;
$custom-dark: #000000;
JSON
{
  "hex": "#252aac",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 237.778,
    "s": 64.593,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38753,
    "c": 0.19939,
    "h": 270.8
  },
  "luminance": 0.05028
}

Semantic roles & 50–950 ramp

primary
#252AAC
secondary
#C6C267
accent
#E140E8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #252AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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