#31299C#31299C

#31299C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.177 H 276.7°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#31299C
RGBrgb(49, 41, 156)
HSLhsl(244, 58%, 39%)
HSVhsv(244, 74%, 61%)
CMYKcmyk(68.6%, 73.7%, 0%, 38.8%)
CIE-LABlab(25.68, 40.01, -61.00)
CIE-LCHlch(25.68, 72.95, 303.26°)
OKLaboklab(37.65% 0.0207 -0.1762)
OKLCHoklch(37.65% 0.177 276.7)
XYZxyz(8.0584, 4.6384, 31.9167)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31299C #949C29
analogous
#295A9C #31299C #6A299C
triadic
#31299C #9C3129 #299C31
tetradic
#31299C #9C295A #949C29 #299C6A
square
#31299C #9C295A #949C29 #299C6A
split-complementary
#31299C #9C6A29 #5A9C29
monochromatic
#13103B #221C6C #31299C #4238CB #7068D7

Accessibility & contrast

On white

10.89
#31299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#31299C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31299C
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31299C#FFFFFF#000000##FFFFFF
##31299C1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31299c;
/* rgb */ color: rgb(49, 41, 156);
/* oklch */ color: oklch(37.6% 0.177 276.7);
Tailwind
colors: {
  custom: {
    50: '#7964ba',
    500: '#31299c',
    950: '#000000',
  },
}
SCSS
$custom: #31299c;
$custom-light: #7964ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31299c",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 244.174,
    "s": 58.376,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37647,
    "c": 0.17743,
    "h": 276.7
  },
  "luminance": 0.04639
}

Semantic roles & 50–950 ramp

primary
#31299C
secondary
#B7BE63
accent
#E246D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #31299C

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

Preview Lab → · Contrast checker → · Palette generator →

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