#252971#252971

#252971 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.122 H 274.9°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#252971
RGBrgb(37, 41, 113)
HSLhsl(237, 51%, 29%)
HSVhsv(237, 67%, 44%)
CMYKcmyk(67.3%, 63.7%, 0%, 55.7%)
CIE-LABlab(20.72, 23.10, -42.22)
CIE-LCHlch(20.72, 48.12, 298.68°)
OKLaboklab(32.58% 0.0104 -0.1216)
OKLCHoklch(32.58% 0.122 274.9)
XYZxyz(4.5355, 3.1711, 15.9926)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252971 #716D25
analogous
#254F71 #252971 #472571
triadic
#252971 #712529 #297125
tetradic
#252971 #71254F #716D25 #257147
square
#252971 #71254F #716D25 #257147
split-complementary
#252971 #714725 #4F7125
monochromatic
#080817 #161843 #252971 #343A9F #4C52C4

Accessibility & contrast

On white

12.85
#252971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#252971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252971
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252971#FFFFFF#000000##FFFFFF
##2529711.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #252971;
/* rgb */ color: rgb(37, 41, 113);
/* oklch */ color: oklch(32.6% 0.122 274.9);
Tailwind
colors: {
  custom: {
    50: '#69629a',
    500: '#252971',
    950: '#000000',
  },
}
SCSS
$custom: #252971;
$custom-light: #69629a;
$custom-dark: #000000;
JSON
{
  "hex": "#252971",
  "rgb": {
    "r": 37,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 236.842,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32581,
    "c": 0.12204,
    "h": 274.9
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#252971
secondary
#A49F4E
accent
#D34EDA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #252971

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

Preview Lab → · Contrast checker → · Palette generator →

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