#252397#252397

#252397 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.180 H 273.0°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#252397
RGBrgb(37, 35, 151)
HSLhsl(241, 62%, 36%)
HSVhsv(241, 77%, 59%)
CMYKcmyk(75.5%, 76.8%, 0%, 40.8%)
CIE-LABlab(23.10, 40.54, -62.22)
CIE-LCHlch(23.10, 74.26, 303.09°)
OKLaboklab(35.44% 0.0095 -0.18)
OKLCHoklch(35.44% 0.18 273)
XYZxyz(6.9480, 3.8290, 29.6451)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252397 #959723
analogous
#235B97 #252397 #5F2397
triadic
#252397 #972523 #239725
tetradic
#252397 #97235B #959723 #23975F
square
#252397 #97235B #959723 #23975F
split-complementary
#252397 #975F23 #5B9723
monochromatic
#0D0C34 #191765 #252397 #312FC9 #5E5BD9

Accessibility & contrast

On white

11.89
#252397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#252397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252397
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252397#FFFFFF#000000##FFFFFF
##2523971.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252397;
/* rgb */ color: rgb(37, 35, 151);
/* oklch */ color: oklch(35.4% 0.180 273.0);
Tailwind
colors: {
  custom: {
    50: '#7360b7',
    500: '#252397',
    950: '#000000',
  },
}
SCSS
$custom: #252397;
$custom-light: #7360b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252397",
  "rgb": {
    "r": 37,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 241.034,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35443,
    "c": 0.18029,
    "h": 273
  },
  "luminance": 0.0383
}

Semantic roles & 50–950 ramp

primary
#252397
secondary
#BCBE58
accent
#E542E3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #252397

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

Preview Lab → · Contrast checker → · Palette generator →

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