#252A8D#252A8D

#252A8D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.160 H 272.6°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#252A8D
RGBrgb(37, 42, 141)
HSLhsl(237, 58%, 35%)
HSVhsv(237, 74%, 55%)
CMYKcmyk(73.8%, 70.2%, 0%, 44.7%)
CIE-LABlab(23.58, 32.79, -55.24)
CIE-LCHlch(23.58, 64.24, 300.69°)
OKLaboklab(35.47% 0.0073 -0.1597)
OKLCHoklch(35.47% 0.16 272.6)
XYZxyz(6.3970, 3.9717, 25.6236)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A8D #8D8825
analogous
#255E8D #252A8D #54258D
triadic
#252A8D #8D252A #2A8D25
tetradic
#252A8D #8D255E #8D8825 #258D54
square
#252A8D #8D255E #8D8825 #258D54
split-complementary
#252A8D #8D5425 #5E8D25
monochromatic
#0C0D2C #181C5D #252A8D #3238BD #595FD3

Accessibility & contrast

On white

11.70
#252A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#252A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A8D
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A8D#FFFFFF#000000##FFFFFF
##252A8D1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #252a8d;
/* rgb */ color: rgb(37, 42, 141);
/* oklch */ color: oklch(35.5% 0.160 272.6);
Tailwind
colors: {
  custom: {
    50: '#7064af',
    500: '#252a8d',
    950: '#000000',
  },
}
SCSS
$custom: #252a8d;
$custom-light: #7064af;
$custom-dark: #000000;
JSON
{
  "hex": "#252a8d",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 237.115,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35472,
    "c": 0.15991,
    "h": 272.6
  },
  "luminance": 0.03972
}

Semantic roles & 50–950 ramp

primary
#252A8D
secondary
#B8B356
accent
#DA46E2
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #252A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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