#252972#252972

#252972 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.123 H 274.8°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#252972
RGBrgb(37, 41, 114)
HSLhsl(237, 51%, 30%)
HSVhsv(237, 68%, 45%)
CMYKcmyk(67.5%, 64%, 0%, 55.3%)
CIE-LABlab(20.80, 23.47, -42.72)
CIE-LCHlch(20.80, 48.74, 298.79°)
OKLaboklab(32.67% 0.0104 -0.1231)
OKLCHoklch(32.67% 0.124 274.8)
XYZxyz(4.5921, 3.1937, 16.2908)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252972 #726E25
analogous
#255072 #252972 #482572
triadic
#252972 #722529 #297225
tetradic
#252972 #722550 #726E25 #257248
square
#252972 #722550 #726E25 #257248
split-complementary
#252972 #724825 #507225
monochromatic
#070817 #161844 #252972 #343AA0 #4C53C5

Accessibility & contrast

On white

12.81
#252972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#252972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252972
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252972#FFFFFF#000000##FFFFFF
##2529721.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252972;
/* rgb */ color: rgb(37, 41, 114);
/* oklch */ color: oklch(32.7% 0.123 274.8);
Tailwind
colors: {
  custom: {
    50: '#6a629b',
    500: '#252972',
    950: '#000000',
  },
}
SCSS
$custom: #252972;
$custom-light: #6a629b;
$custom-dark: #000000;
JSON
{
  "hex": "#252972",
  "rgb": {
    "r": 37,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 236.883,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32672,
    "c": 0.1235,
    "h": 274.8
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#252972
secondary
#A5A04E
accent
#D34DDA
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #252972

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

Preview Lab → · Contrast checker → · Palette generator →

#252972 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva