#31298D#31298D

#31298D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.158 H 278.5°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#31298D
RGBrgb(49, 41, 141)
HSLhsl(245, 55%, 36%)
HSVhsv(245, 71%, 55%)
CMYKcmyk(65.2%, 70.9%, 0%, 44.7%)
CIE-LABlab(24.20, 34.97, -54.19)
CIE-LCHlch(24.20, 64.49, 302.83°)
OKLaboklab(36.14% 0.0234 -0.1563)
OKLCHoklch(36.14% 0.158 278.5)
XYZxyz(6.8657, 4.1614, 25.6356)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31298D #858D29
analogous
#29538D #31298D #63298D
triadic
#31298D #8D3129 #298D31
tetradic
#31298D #8D2953 #858D29 #298D63
square
#31298D #8D2953 #858D29 #298D63
split-complementary
#31298D #8D6329 #538D29
monochromatic
#100D2E #211B5E #31298D #4137BC #6960D1

Accessibility & contrast

On white

11.46
#31298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#31298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31298D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31298D#FFFFFF#000000##FFFFFF
##31298D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31298d;
/* rgb */ color: rgb(49, 41, 141);
/* oklch */ color: oklch(36.1% 0.158 278.5);
Tailwind
colors: {
  custom: {
    50: '#7564af',
    500: '#31298d',
    950: '#000000',
  },
}
SCSS
$custom: #31298d;
$custom-light: #7564af;
$custom-dark: #000000;
JSON
{
  "hex": "#31298d",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 244.8,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3614,
    "c": 0.15808,
    "h": 278.5
  },
  "luminance": 0.04162
}

Semantic roles & 50–950 ramp

primary
#31298D
secondary
#AFB65B
accent
#DE4AD2
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #31298D

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

Preview Lab → · Contrast checker → · Palette generator →

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