#252399#252399

#252399 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.183 H 272.8°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#252399
RGBrgb(37, 35, 153)
HSLhsl(241, 63%, 37%)
HSVhsv(241, 77%, 60%)
CMYKcmyk(75.8%, 77.1%, 0%, 40%)
CIE-LABlab(23.32, 41.21, -63.08)
CIE-LCHlch(23.32, 75.35, 303.16°)
OKLaboklab(35.67% 0.0091 -0.1825)
OKLCHoklch(35.67% 0.183 272.8)
XYZxyz(7.1118, 3.8945, 30.5077)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252399 #979923
analogous
#235C99 #252399 #602399
triadic
#252399 #992523 #239925
tetradic
#252399 #99235C #979923 #239960
square
#252399 #99235C #979923 #239960
split-complementary
#252399 #996023 #5C9923
monochromatic
#0D0C35 #191867 #252399 #312ECB #5F5DDA

Accessibility & contrast

On white

11.80
#252399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#252399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252399
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252399#FFFFFF#000000##FFFFFF
##2523991.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #252399;
/* rgb */ color: rgb(37, 35, 153);
/* oklch */ color: oklch(35.7% 0.183 272.8);
Tailwind
colors: {
  custom: {
    50: '#7460b8',
    500: '#252399',
    950: '#000000',
  },
}
SCSS
$custom: #252399;
$custom-light: #7460b8;
$custom-dark: #000000;
JSON
{
  "hex": "#252399",
  "rgb": {
    "r": 37,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 241.017,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35665,
    "c": 0.18276,
    "h": 272.8
  },
  "luminance": 0.03895
}

Semantic roles & 50–950 ramp

primary
#252399
secondary
#BDBE59
accent
#E642E3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #252399

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

Preview Lab → · Contrast checker → · Palette generator →

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