#252A7D#252A7D

#252A7D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.138 H 273.7°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#252A7D
RGBrgb(37, 42, 125)
HSLhsl(237, 54%, 32%)
HSVhsv(237, 70%, 49%)
CMYKcmyk(70.4%, 66.4%, 0%, 51%)
CIE-LABlab(22.05, 26.91, -47.71)
CIE-LCHlch(22.05, 54.77, 299.42°)
OKLaboklab(33.89% 0.0089 -0.1377)
OKLCHoklch(33.89% 0.138 273.7)
XYZxyz(5.2914, 3.5294, 19.8005)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A7D #7D7825
analogous
#25567D #252A7D #4C257D
triadic
#252A7D #7D252A #2A7D25
tetradic
#252A7D #7D2556 #7D7825 #257D4C
square
#252A7D #7D2556 #7D7825 #257D4C
split-complementary
#252A7D #7D4C25 #567D25
monochromatic
#090A1F #171A4E #252A7D #333AAC #5158CB

Accessibility & contrast

On white

12.31
#252A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#252A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A7D
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A7D#FFFFFF#000000##FFFFFF
##252A7D1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252a7d;
/* rgb */ color: rgb(37, 42, 125);
/* oklch */ color: oklch(33.9% 0.138 273.7);
Tailwind
colors: {
  custom: {
    50: '#6c63a3',
    500: '#252a7d',
    950: '#000000',
  },
}
SCSS
$custom: #252a7d;
$custom-light: #6c63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#252a7d",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 236.591,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33894,
    "c": 0.13797,
    "h": 273.7
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#252A7D
secondary
#AFAA4F
accent
#D54ADE
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #252A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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