#252571#252571

#252571 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.127 H 276.4°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#252571
RGBrgb(37, 37, 113)
HSLhsl(240, 51%, 29%)
HSVhsv(240, 67%, 44%)
CMYKcmyk(67.3%, 67.3%, 0%, 55.7%)
CIE-LABlab(19.67, 25.83, -43.92)
CIE-LCHlch(19.67, 50.95, 300.46°)
OKLaboklab(31.82% 0.0141 -0.1266)
OKLCHoklch(31.82% 0.127 276.4)
XYZxyz(4.4042, 2.9083, 15.9489)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252571 #717125
analogous
#254B71 #252571 #4B2571
triadic
#252571 #712525 #257125
tetradic
#252571 #71254B #717125 #25714B
square
#252571 #71254B #717125 #25714B
split-complementary
#252571 #714B25 #4B7125
monochromatic
#080817 #161643 #252571 #34349F #4C4CC4

Accessibility & contrast

On white

13.28
#252571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#252571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252571
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252571#FFFFFF#000000##FFFFFF
##2525711.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #252571;
/* rgb */ color: rgb(37, 37, 113);
/* oklch */ color: oklch(31.8% 0.127 276.4);
Tailwind
colors: {
  custom: {
    50: '#6a609b',
    500: '#252571',
    950: '#000000',
  },
}
SCSS
$custom: #252571;
$custom-light: #6a609b;
$custom-dark: #000000;
JSON
{
  "hex": "#252571",
  "rgb": {
    "r": 37,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31815,
    "c": 0.12739,
    "h": 276.4
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#252571
secondary
#A4A44E
accent
#DA4EDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #252571

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

Preview Lab → · Contrast checker → · Palette generator →

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