#252A72#252A72

#252A72 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.122 H 274.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#252A72
RGBrgb(37, 42, 114)
HSLhsl(236, 51%, 30%)
HSVhsv(236, 68%, 45%)
CMYKcmyk(67.5%, 63.2%, 0%, 55.3%)
CIE-LABlab(21.07, 22.78, -42.29)
CIE-LCHlch(21.07, 48.03, 298.31°)
OKLaboklab(32.87% 0.0095 -0.1218)
OKLCHoklch(32.87% 0.122 274.5)
XYZxyz(4.6272, 3.2638, 16.3024)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A72 #726D25
analogous
#255172 #252A72 #472572
triadic
#252A72 #72252A #2A7225
tetradic
#252A72 #722551 #726D25 #257247
square
#252A72 #722551 #726D25 #257247
split-complementary
#252A72 #724725 #517225
monochromatic
#070917 #161944 #252A72 #343BA0 #4C54C5

Accessibility & contrast

On white

12.71
#252A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#252A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A72
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A72#FFFFFF#000000##FFFFFF
##252A721.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #252a72;
/* rgb */ color: rgb(37, 42, 114);
/* oklch */ color: oklch(32.9% 0.122 274.5);
Tailwind
colors: {
  custom: {
    50: '#6a639b',
    500: '#252a72',
    950: '#000000',
  },
}
SCSS
$custom: #252a72;
$custom-light: #6a639b;
$custom-dark: #000000;
JSON
{
  "hex": "#252a72",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 236.104,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32869,
    "c": 0.12214,
    "h": 274.5
  },
  "luminance": 0.03264
}

Semantic roles & 50–950 ramp

primary
#252A72
secondary
#A59F4E
accent
#D14DDA
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #252A72

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

Preview Lab → · Contrast checker → · Palette generator →

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