#252798#252798

#252798 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.178 H 272.4°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#252798
RGBrgb(37, 39, 152)
HSLhsl(239, 61%, 37%)
HSVhsv(239, 76%, 60%)
CMYKcmyk(75.7%, 74.3%, 0%, 40.4%)
CIE-LABlab(24.03, 38.55, -61.29)
CIE-LCHlch(24.03, 72.40, 302.17°)
OKLaboklab(36.14% 0.0074 -0.1774)
OKLCHoklch(36.14% 0.178 272.4)
XYZxyz(7.1541, 4.1106, 30.1161)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252798 #989625
analogous
#256098 #252798 #5D2598
triadic
#252798 #982527 #279825
tetradic
#252798 #982560 #989625 #25985D
square
#252798 #982560 #989625 #25985D
split-complementary
#252798 #985D25 #609825
monochromatic
#0D0E36 #191A67 #252798 #3134C9 #5F61D8

Accessibility & contrast

On white

11.52
#252798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#252798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252798
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252798#FFFFFF#000000##FFFFFF
##2527981.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #252798;
/* rgb */ color: rgb(37, 39, 152);
/* oklch */ color: oklch(36.1% 0.178 272.4);
Tailwind
colors: {
  custom: {
    50: '#7362b7',
    500: '#252798',
    950: '#000000',
  },
}
SCSS
$custom: #252798;
$custom-light: #7362b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252798",
  "rgb": {
    "r": 37,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 238.957,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36139,
    "c": 0.17751,
    "h": 272.4
  },
  "luminance": 0.04111
}

Semantic roles & 50–950 ramp

primary
#252798
secondary
#BDBC5C
accent
#E144E4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #252798

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

Preview Lab → · Contrast checker → · Palette generator →

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