#253171#253171

#253171 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.111 H 271.3°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#253171
RGBrgb(37, 49, 113)
HSLhsl(231, 51%, 29%)
HSVhsv(231, 67%, 44%)
CMYKcmyk(67.3%, 56.6%, 0%, 55.7%)
CIE-LABlab(22.94, 17.51, -38.62)
CIE-LCHlch(22.94, 42.40, 294.39°)
OKLaboklab(34.23% 0.0026 -0.1109)
OKLCHoklch(34.23% 0.111 271.3)
XYZxyz(4.8409, 3.7818, 16.0944)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#253171 #716525
analogous
#255771 #253171 #3F2571
triadic
#253171 #712531 #317125
tetradic
#253171 #712557 #716525 #25713F
square
#253171 #712557 #716525 #25713F
split-complementary
#253171 #713F25 #577125
monochromatic
#080A17 #161D43 #253171 #34459F #4C5FC4

Accessibility & contrast

On white

11.96
#253171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#253171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #253171
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##253171#FFFFFF#000000##FFFFFF
##2531711.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043A73
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #253171;
/* rgb */ color: rgb(37, 49, 113);
/* oklch */ color: oklch(34.2% 0.111 271.3);
Tailwind
colors: {
  custom: {
    50: '#69689a',
    500: '#253171',
    950: '#000000',
  },
}
SCSS
$custom: #253171;
$custom-light: #69689a;
$custom-dark: #000000;
JSON
{
  "hex": "#253171",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 230.526,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34234,
    "c": 0.11093,
    "h": 271.3
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

primary
#253171
secondary
#A4964E
accent
#C44EDA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #253171

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

Preview Lab → · Contrast checker → · Palette generator →

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