#252A9D#252A9D

#252A9D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.181 H 271.6°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#252A9D
RGBrgb(37, 42, 157)
HSLhsl(238, 62%, 38%)
HSVhsv(238, 76%, 62%)
CMYKcmyk(76.4%, 73.2%, 0%, 38.4%)
CIE-LABlab(25.21, 38.49, -62.41)
CIE-LCHlch(25.21, 73.33, 301.67°)
OKLaboklab(37.13% 0.0051 -0.1806)
OKLCHoklch(37.13% 0.181 271.6)
XYZxyz(7.6747, 4.4827, 32.3525)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A9D #9D9825
analogous
#25669D #252A9D #5C259D
triadic
#252A9D #9D252A #2A9D25
tetradic
#252A9D #9D2566 #9D9825 #259D5C
square
#252A9D #9D2566 #9D9825 #259D5C
split-complementary
#252A9D #9D5C25 #669D25
monochromatic
#0E103A #191D6B #252A9D #3137CE #6267DA

Accessibility & contrast

On white

11.07
#252A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#252A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A9D
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A9D#FFFFFF#000000##FFFFFF
##252A9D1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00369B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #252a9d;
/* rgb */ color: rgb(37, 42, 157);
/* oklch */ color: oklch(37.1% 0.181 271.6);
Tailwind
colors: {
  custom: {
    50: '#7464bb',
    500: '#252a9d',
    950: '#000000',
  },
}
SCSS
$custom: #252a9d;
$custom-light: #7464bb;
$custom-dark: #000000;
JSON
{
  "hex": "#252a9d",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 237.5,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37134,
    "c": 0.18072,
    "h": 271.6
  },
  "luminance": 0.04484
}

Semantic roles & 50–950 ramp

primary
#252A9D
secondary
#BFBB5E
accent
#DE43E5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #252A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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