#251998#251998

#251998 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.190 H 273.9°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#251998
RGBrgb(37, 25, 152)
HSLhsl(246, 72%, 35%)
HSVhsv(246, 84%, 60%)
CMYKcmyk(75.7%, 83.6%, 0%, 40.4%)
CIE-LABlab(21.41, 46.06, -65.62)
CIE-LCHlch(21.41, 80.18, 305.07°)
OKLaboklab(34.3% 0.0131 -0.1898)
OKLCHoklch(34.3% 0.19 273.9)
XYZxyz(6.7762, 3.3549, 29.9901)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251998 #8C9819
analogous
#194D98 #251998 #641998
triadic
#251998 #982519 #199825
tetradic
#251998 #98194D #8C9819 #199864
square
#251998 #98194D #8C9819 #199864
split-complementary
#251998 #986419 #4D9819
monochromatic
#0B082F #181063 #251998 #3222CD #584AE1

Accessibility & contrast

On white

12.57
#251998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#251998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251998
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251998#FFFFFF#000000##FFFFFF
##2519981.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399B
Deuteranopia (green-blind)
#002D96
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #251998;
/* rgb */ color: rgb(37, 25, 152);
/* oklch */ color: oklch(34.3% 0.190 273.9);
Tailwind
colors: {
  custom: {
    50: '#745ab8',
    500: '#251998',
    950: '#000000',
  },
}
SCSS
$custom: #251998;
$custom-light: #745ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#251998",
  "rgb": {
    "r": 37,
    "g": 25,
    "b": 152
  },
  "hsl": {
    "h": 245.669,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34299,
    "c": 0.19023,
    "h": 273.9
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#251998
secondary
#B8C34A
accent
#EE39DD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #251998

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

Preview Lab → · Contrast checker → · Palette generator →

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