#31298C#31298C

#31298C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.157 H 278.7°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#31298C
RGBrgb(49, 41, 140)
HSLhsl(245, 55%, 35%)
HSVhsv(245, 71%, 55%)
CMYKcmyk(65%, 70.7%, 0%, 45.1%)
CIE-LABlab(24.10, 34.63, -53.73)
CIE-LCHlch(24.10, 63.92, 302.80°)
OKLaboklab(36.04% 0.0236 -0.155)
OKLCHoklch(36.04% 0.157 278.7)
XYZxyz(6.7917, 4.1318, 25.2455)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31298C #848C29
analogous
#29538C #31298C #62298C
triadic
#31298C #8C3129 #298C31
tetradic
#31298C #8C2953 #848C29 #298C62
square
#31298C #8C2953 #848C29 #298C62
split-complementary
#31298C #8C6229 #538C29
monochromatic
#100D2D #201B5D #31298C #4237BB #685FD0

Accessibility & contrast

On white

11.50
#31298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31298C
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31298C#FFFFFF#000000##FFFFFF
##31298C1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31298c;
/* rgb */ color: rgb(49, 41, 140);
/* oklch */ color: oklch(36.0% 0.157 278.7);
Tailwind
colors: {
  custom: {
    50: '#7564af',
    500: '#31298c',
    950: '#000000',
  },
}
SCSS
$custom: #31298c;
$custom-light: #7564af;
$custom-dark: #000000;
JSON
{
  "hex": "#31298c",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 244.848,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36042,
    "c": 0.15676,
    "h": 278.7
  },
  "luminance": 0.04132
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31298C

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

Preview Lab → · Contrast checker → · Palette generator →

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