#252998#252998

#252998 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.175 H 272.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#252998
RGBrgb(37, 41, 152)
HSLhsl(238, 61%, 37%)
HSVhsv(238, 76%, 60%)
CMYKcmyk(75.7%, 73%, 0%, 40.4%)
CIE-LABlab(24.47, 37.35, -60.57)
CIE-LCHlch(24.47, 71.16, 301.66°)
OKLaboklab(36.45% 0.0064 -0.1753)
OKLCHoklch(36.45% 0.175 272.1)
XYZxyz(7.2215, 4.2454, 30.1385)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252998 #989425
analogous
#256398 #252998 #5B2598
triadic
#252998 #982529 #299825
tetradic
#252998 #982563 #989425 #25985B
square
#252998 #982563 #989425 #25985B
split-complementary
#252998 #985B25 #639825
monochromatic
#0D0E36 #191C67 #252998 #3136C9 #5F63D8

Accessibility & contrast

On white

11.36
#252998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#252998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252998
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252998#FFFFFF#000000##FFFFFF
##2529981.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252998;
/* rgb */ color: rgb(37, 41, 152);
/* oklch */ color: oklch(36.4% 0.175 272.1);
Tailwind
colors: {
  custom: {
    50: '#7364b7',
    500: '#252998',
    950: '#000000',
  },
}
SCSS
$custom: #252998;
$custom-light: #7364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252998",
  "rgb": {
    "r": 37,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 237.913,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36448,
    "c": 0.17541,
    "h": 272.1
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#252998
secondary
#BDBA5C
accent
#DE44E4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #252998

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

Preview Lab → · Contrast checker → · Palette generator →

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