#253172#253172

#253172 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.3% C 0.112 H 271.4°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#253172
RGBrgb(37, 49, 114)
HSLhsl(231, 51%, 30%)
HSVhsv(231, 68%, 45%)
CMYKcmyk(67.5%, 57%, 0%, 55.3%)
CIE-LABlab(23.01, 17.89, -39.13)
CIE-LCHlch(23.01, 43.03, 294.57°)
OKLaboklab(34.32% 0.0027 -0.1124)
OKLCHoklch(34.32% 0.112 271.4)
XYZxyz(4.8975, 3.8044, 16.3926)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#253172 #726625
analogous
#255872 #253172 #3F2572
triadic
#253172 #722531 #317225
tetradic
#253172 #722558 #726625 #25723F
square
#253172 #722558 #726625 #25723F
split-complementary
#253172 #723F25 #587225
monochromatic
#070A17 #161D44 #253172 #3445A0 #4C5FC5

Accessibility & contrast

On white

11.93
#253172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #253172
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##253172#FFFFFF#000000##FFFFFF
##2531721.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023A74
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #253172;
/* rgb */ color: rgb(37, 49, 114);
/* oklch */ color: oklch(34.3% 0.112 271.4);
Tailwind
colors: {
  custom: {
    50: '#69689b',
    500: '#253172',
    950: '#000000',
  },
}
SCSS
$custom: #253172;
$custom-light: #69689b;
$custom-dark: #000000;
JSON
{
  "hex": "#253172",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 230.649,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34317,
    "c": 0.11244,
    "h": 271.4
  },
  "luminance": 0.03805
}

Semantic roles & 50–950 ramp

primary
#253172
secondary
#A5974E
accent
#C44DDA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #253172

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

Preview Lab → · Contrast checker → · Palette generator →

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