#31299B#31299B

#31299B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.176 H 276.8°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#31299B
RGBrgb(49, 41, 155)
HSLhsl(244, 58%, 38%)
HSVhsv(244, 74%, 61%)
CMYKcmyk(68.4%, 73.5%, 0%, 39.2%)
CIE-LABlab(25.58, 39.67, -60.55)
CIE-LCHlch(25.58, 72.39, 303.23°)
OKLaboklab(37.55% 0.0209 -0.1749)
OKLCHoklch(37.55% 0.176 276.8)
XYZxyz(7.9740, 4.6047, 31.4726)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31299B #939B29
analogous
#295A9B #31299B #6A299B
triadic
#31299B #9B3129 #299B31
tetradic
#31299B #9B295A #939B29 #299B6A
square
#31299B #9B295A #939B29 #299B6A
split-complementary
#31299B #9B6A29 #5A9B29
monochromatic
#120F3A #221C6B #31299B #4137CA #6F67D7

Accessibility & contrast

On white

10.93
#31299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#31299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31299B
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31299B#FFFFFF#000000##FFFFFF
##31299B1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31299b;
/* rgb */ color: rgb(49, 41, 155);
/* oklch */ color: oklch(37.5% 0.176 276.8);
Tailwind
colors: {
  custom: {
    50: '#7864ba',
    500: '#31299b',
    950: '#000000',
  },
}
SCSS
$custom: #31299b;
$custom-light: #7864ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31299b",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 244.211,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37545,
    "c": 0.17618,
    "h": 276.8
  },
  "luminance": 0.04605
}

Semantic roles & 50–950 ramp

primary
#31299B
secondary
#B7BD63
accent
#E146D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #31299B

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

Preview Lab → · Contrast checker → · Palette generator →

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