#252799#252799

#252799 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.179 H 272.3°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#252799
RGBrgb(37, 39, 153)
HSLhsl(239, 61%, 37%)
HSVhsv(239, 76%, 60%)
CMYKcmyk(75.8%, 74.5%, 0%, 40%)
CIE-LABlab(24.14, 38.90, -61.72)
CIE-LCHlch(24.14, 72.96, 302.22°)
OKLaboklab(36.25% 0.0072 -0.1786)
OKLCHoklch(36.25% 0.179 272.3)
XYZxyz(7.2363, 4.1435, 30.5492)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252799 #999725
analogous
#256199 #252799 #5D2599
triadic
#252799 #992527 #279925
tetradic
#252799 #992561 #999725 #25995D
square
#252799 #992561 #999725 #25995D
split-complementary
#252799 #995D25 #619925
monochromatic
#0D0E36 #191A68 #252799 #3134CA #6062D9

Accessibility & contrast

On white

11.48
#252799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#252799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252799
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252799#FFFFFF#000000##FFFFFF
##2527991.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #252799;
/* rgb */ color: rgb(37, 39, 153);
/* oklch */ color: oklch(36.2% 0.179 272.3);
Tailwind
colors: {
  custom: {
    50: '#7362b8',
    500: '#252799',
    950: '#000000',
  },
}
SCSS
$custom: #252799;
$custom-light: #7362b8;
$custom-dark: #000000;
JSON
{
  "hex": "#252799",
  "rgb": {
    "r": 37,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 238.966,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36247,
    "c": 0.17878,
    "h": 272.3
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#252799
secondary
#BEBC5C
accent
#E144E4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #252799

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

Preview Lab → · Contrast checker → · Palette generator →

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