#252698#252698

#252698 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.179 H 272.5°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#252698
RGBrgb(37, 38, 152)
HSLhsl(239, 61%, 37%)
HSVhsv(239, 76%, 60%)
CMYKcmyk(75.7%, 75%, 0%, 40.4%)
CIE-LABlab(23.82, 39.14, -61.63)
CIE-LCHlch(23.82, 73.01, 302.42°)
OKLaboklab(35.99% 0.0079 -0.1784)
OKLCHoklch(35.99% 0.179 272.5)
XYZxyz(7.1217, 4.0458, 30.1053)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252698 #989725
analogous
#256098 #252698 #5D2598
triadic
#252698 #982526 #269825
tetradic
#252698 #982560 #989725 #25985D
square
#252698 #982560 #989725 #25985D
split-complementary
#252698 #985D25 #609825
monochromatic
#0D0D36 #191A67 #252698 #3132C9 #5F60D8

Accessibility & contrast

On white

11.61
#252698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#252698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252698
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252698#FFFFFF#000000##FFFFFF
##2526981.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252698;
/* rgb */ color: rgb(37, 38, 152);
/* oklch */ color: oklch(36.0% 0.179 272.5);
Tailwind
colors: {
  custom: {
    50: '#7362b7',
    500: '#252698',
    950: '#000000',
  },
}
SCSS
$custom: #252698;
$custom-light: #7362b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252698",
  "rgb": {
    "r": 37,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 239.478,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35989,
    "c": 0.17854,
    "h": 272.5
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #252698

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

Preview Lab → · Contrast checker → · Palette generator →

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