#252172#252172

#252172 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.134 H 277.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#252172
RGBrgb(37, 33, 114)
HSLhsl(243, 55%, 29%)
HSVhsv(243, 71%, 45%)
CMYKcmyk(67.5%, 71.1%, 0%, 55.3%)
CIE-LABlab(18.78, 28.84, -46.03)
CIE-LCHlch(18.78, 54.31, 302.07°)
OKLaboklab(31.2% 0.0174 -0.1328)
OKLCHoklch(31.2% 0.134 277.5)
XYZxyz(4.3431, 2.6956, 16.2078)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252172 #6E7221
analogous
#214672 #252172 #4E2172
triadic
#252172 #722521 #217225
tetradic
#252172 #722146 #6E7221 #21724E
square
#252172 #722146 #6E7221 #21724E
split-complementary
#252172 #724E21 #467221
monochromatic
#080718 #161343 #252172 #342FA1 #4B44C9

Accessibility & contrast

On white

13.64
#252172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#252172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252172
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252172#FFFFFF#000000##FFFFFF
##2521721.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #252172;
/* rgb */ color: rgb(37, 33, 114);
/* oklch */ color: oklch(31.2% 0.134 277.5);
Tailwind
colors: {
  custom: {
    50: '#6a5d9b',
    500: '#252172',
    950: '#000000',
  },
}
SCSS
$custom: #252172;
$custom-light: #6a5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#252172",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 242.963,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31197,
    "c": 0.13393,
    "h": 277.5
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#252172
secondary
#A1A549
accent
#DE49D7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #252172

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

Preview Lab → · Contrast checker → · Palette generator →

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