#31298E#31298E

#31298E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.159 H 278.4°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#31298E
RGBrgb(49, 41, 142)
HSLhsl(245, 55%, 36%)
HSVhsv(245, 71%, 56%)
CMYKcmyk(65.5%, 71.1%, 0%, 44.3%)
CIE-LABlab(24.29, 35.31, -54.65)
CIE-LCHlch(24.29, 65.07, 302.86°)
OKLaboklab(36.24% 0.0233 -0.1577)
OKLCHoklch(36.24% 0.159 278.4)
XYZxyz(6.9405, 4.1913, 26.0292)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31298E #868E29
analogous
#29548E #31298E #63298E
triadic
#31298E #8E3129 #298E31
tetradic
#31298E #8E2954 #868E29 #298E63
square
#31298E #8E2954 #868E29 #298E63
split-complementary
#31298E #8E6329 #548E29
monochromatic
#100E2F #211B5F #31298E #4137BD #6960D1

Accessibility & contrast

On white

11.42
#31298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#31298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31298E
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31298E#FFFFFF#000000##FFFFFF
##31298E1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31298e;
/* rgb */ color: rgb(49, 41, 142);
/* oklch */ color: oklch(36.2% 0.159 278.4);
Tailwind
colors: {
  custom: {
    50: '#7664b0',
    500: '#31298e',
    950: '#000000',
  },
}
SCSS
$custom: #31298e;
$custom-light: #7664b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31298e",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 244.752,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36239,
    "c": 0.1594,
    "h": 278.4
  },
  "luminance": 0.04192
}

Semantic roles & 50–950 ramp

primary
#31298E
secondary
#B0B75C
accent
#DF49D3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #31298E

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

Preview Lab → · Contrast checker → · Palette generator →

#31298E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva