#252A8E#252A8E

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

Color values

HEX#252A8E
RGBrgb(37, 42, 142)
HSLhsl(237, 59%, 35%)
HSVhsv(237, 74%, 56%)
CMYKcmyk(73.9%, 70.4%, 0%, 44.3%)
CIE-LABlab(23.68, 33.15, -55.70)
CIE-LCHlch(23.68, 64.82, 300.76°)
OKLaboklab(35.57% 0.0072 -0.1611)
OKLCHoklch(35.57% 0.161 272.6)
XYZxyz(6.4718, 4.0016, 26.0173)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A8E #8E8925
analogous
#255E8E #252A8E #55258E
triadic
#252A8E #8E252A #2A8E25
tetradic
#252A8E #8E255E #8E8925 #258E55
square
#252A8E #8E255E #8E8925 #258E55
split-complementary
#252A8E #8E5525 #5E8E25
monochromatic
#0C0D2D #181C5D #252A8E #3238BF #5A5FD4

Accessibility & contrast

On white

11.66
#252A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#252A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A8E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A8E#FFFFFF#000000##FFFFFF
##252A8E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252a8e;
/* rgb */ color: rgb(37, 42, 142);
/* oklch */ color: oklch(35.6% 0.161 272.6);
Tailwind
colors: {
  custom: {
    50: '#7064b0',
    500: '#252a8e',
    950: '#000000',
  },
}
SCSS
$custom: #252a8e;
$custom-light: #7064b0;
$custom-dark: #000000;
JSON
{
  "hex": "#252a8e",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 237.143,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35574,
    "c": 0.16123,
    "h": 272.6
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#252A8E
secondary
#B9B456
accent
#DA46E2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #252A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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