#252152#252152

#252152 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.2% C 0.086 H 283.0°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#252152
RGBrgb(37, 33, 82)
HSLhsl(245, 43%, 23%)
HSVhsv(245, 60%, 32%)
CMYKcmyk(54.9%, 59.8%, 0%, 67.8%)
CIE-LABlab(15.95, 17.23, -29.49)
CIE-LCHlch(15.95, 34.15, 300.30°)
OKLaboklab(28.24% 0.0195 -0.0842)
OKLCHoklch(28.24% 0.086 283)
XYZxyz(2.8293, 2.0901, 8.2353)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252152 #4E5221
analogous
#213552 #252152 #3E2152
triadic
#252152 #522521 #215225
tetradic
#252152 #522135 #4E5221 #21523E
square
#252152 #522135 #4E5221 #21523E
split-complementary
#252152 #523E21 #355221
monochromatic
#0A0916 #110F26 #252152 #39337E #4C44A9

Accessibility & contrast

On white

14.81
#252152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#252152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252152
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252152#FFFFFF#000000##FFFFFF
##2521521.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052954
Deuteranopia (green-blind)
#022651
Tritanopia (blue-blind)
#142C36
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #252152;
/* rgb */ color: rgb(37, 33, 82);
/* oklch */ color: oklch(28.2% 0.086 283.0);
Tailwind
colors: {
  custom: {
    50: '#645c83',
    500: '#252152',
    950: '#000000',
  },
}
SCSS
$custom: #252152;
$custom-light: #645c83;
$custom-dark: #000000;
JSON
{
  "hex": "#252152",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 244.898,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28244,
    "c": 0.08645,
    "h": 283
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#252152
secondary
#818649
accent
#D255C8
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #252152

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

Preview Lab → · Contrast checker → · Palette generator →

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