#252097#252097

#252097 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.183 H 273.4°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#252097
RGBrgb(37, 32, 151)
HSLhsl(243, 65%, 36%)
HSVhsv(243, 79%, 59%)
CMYKcmyk(75.5%, 78.8%, 0%, 40.8%)
CIE-LABlab(22.51, 42.20, -63.18)
CIE-LCHlch(22.51, 75.98, 303.74°)
OKLaboklab(35.03% 0.0108 -0.1828)
OKLCHoklch(35.03% 0.183 273.4)
XYZxyz(6.8635, 3.6600, 29.6169)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252097 #929720
analogous
#205697 #252097 #602097
triadic
#252097 #972520 #209725
tetradic
#252097 #972056 #929720 #209760
square
#252097 #972056 #929720 #209760
split-complementary
#252097 #976020 #569720
monochromatic
#0C0B32 #191564 #252097 #312BC9 #5C56DB

Accessibility & contrast

On white

12.12
#252097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#252097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252097
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252097#FFFFFF#000000##FFFFFF
##2520971.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252097;
/* rgb */ color: rgb(37, 32, 151);
/* oklch */ color: oklch(35.0% 0.183 273.4);
Tailwind
colors: {
  custom: {
    50: '#745eb7',
    500: '#252097',
    950: '#000000',
  },
}
SCSS
$custom: #252097;
$custom-light: #745eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#252097",
  "rgb": {
    "r": 37,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 242.521,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35031,
    "c": 0.18313,
    "h": 273.4
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#252097
secondary
#BABF54
accent
#E840E1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #252097

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

Preview Lab → · Contrast checker → · Palette generator →

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