#252598#252598

#252598 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.180 H 272.7°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#252598
RGBrgb(37, 37, 152)
HSLhsl(240, 61%, 37%)
HSVhsv(240, 76%, 60%)
CMYKcmyk(75.7%, 75.7%, 0%, 40.4%)
CIE-LABlab(23.61, 39.73, -61.98)
CIE-LCHlch(23.61, 73.62, 302.66°)
OKLaboklab(35.84% 0.0084 -0.1794)
OKLCHoklch(35.84% 0.18 272.7)
XYZxyz(7.0901, 3.9827, 30.0948)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252598 #989825
analogous
#255F98 #252598 #5F2598
triadic
#252598 #982525 #259825
tetradic
#252598 #98255F #989825 #25985F
square
#252598 #98255F #989825 #25985F
split-complementary
#252598 #985F25 #5F9825
monochromatic
#0D0D36 #191967 #252598 #3131C9 #5F5FD8

Accessibility & contrast

On white

11.69
#252598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#252598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252598
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252598#FFFFFF#000000##FFFFFF
##2525981.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252598;
/* rgb */ color: rgb(37, 37, 152);
/* oklch */ color: oklch(35.8% 0.180 272.7);
Tailwind
colors: {
  custom: {
    50: '#7361b8',
    500: '#252598',
    950: '#000000',
  },
}
SCSS
$custom: #252598;
$custom-light: #7361b8;
$custom-dark: #000000;
JSON
{
  "hex": "#252598",
  "rgb": {
    "r": 37,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35841,
    "c": 0.17955,
    "h": 272.7
  },
  "luminance": 0.03983
}

Semantic roles & 50–950 ramp

primary
#252598
secondary
#BDBD5C
accent
#E444E4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #252598

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

Preview Lab → · Contrast checker → · Palette generator →

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