#31298F#31298F

#31298F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.161 H 278.3°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#31298F
RGBrgb(49, 41, 143)
HSLhsl(245, 55%, 36%)
HSVhsv(245, 71%, 56%)
CMYKcmyk(65.7%, 71.3%, 0%, 43.9%)
CIE-LABlab(24.39, 35.65, -55.12)
CIE-LCHlch(24.39, 65.64, 302.89°)
OKLaboklab(36.34% 0.0231 -0.159)
OKLCHoklch(36.34% 0.161 278.3)
XYZxyz(7.0159, 4.2214, 26.4264)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31298F #878F29
analogous
#29548F #31298F #64298F
triadic
#31298F #8F3129 #298F31
tetradic
#31298F #8F2954 #878F29 #298F64
square
#31298F #8F2954 #878F29 #298F64
split-complementary
#31298F #8F6429 #548F29
monochromatic
#100E30 #211B5F #31298F #4137BF #6A61D2

Accessibility & contrast

On white

11.39
#31298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31298F
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31298F#FFFFFF#000000##FFFFFF
##31298F1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31298f;
/* rgb */ color: rgb(49, 41, 143);
/* oklch */ color: oklch(36.3% 0.161 278.3);
Tailwind
colors: {
  custom: {
    50: '#7664b1',
    500: '#31298f',
    950: '#000000',
  },
}
SCSS
$custom: #31298f;
$custom-light: #7664b1;
$custom-dark: #000000;
JSON
{
  "hex": "#31298f",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 244.706,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36337,
    "c": 0.16071,
    "h": 278.3
  },
  "luminance": 0.04222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31298F

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

Preview Lab → · Contrast checker → · Palette generator →

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