#31299A#31299A

#31299A is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.175 H 276.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#31299A
RGBrgb(49, 41, 154)
HSLhsl(244, 58%, 38%)
HSVhsv(244, 73%, 60%)
CMYKcmyk(68.2%, 73.4%, 0%, 39.6%)
CIE-LABlab(25.48, 39.34, -60.11)
CIE-LCHlch(25.48, 71.84, 303.20°)
OKLaboklab(37.44% 0.0211 -0.1736)
OKLCHoklch(37.44% 0.175 276.9)
XYZxyz(7.8904, 4.5712, 31.0321)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31299A #929A29
analogous
#29599A #31299A #69299A
triadic
#31299A #9A3129 #299A31
tetradic
#31299A #9A2959 #929A29 #299A69
square
#31299A #9A2959 #929A29 #299A69
split-complementary
#31299A #9A6929 #599A29
monochromatic
#120F39 #221C6A #31299A #4137CA #6F67D7

Accessibility & contrast

On white

10.97
#31299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#31299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31299A
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31299A#FFFFFF#000000##FFFFFF
##31299A1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003798
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31299a;
/* rgb */ color: rgb(49, 41, 154);
/* oklch */ color: oklch(37.4% 0.175 276.9);
Tailwind
colors: {
  custom: {
    50: '#7864b9',
    500: '#31299a',
    950: '#000000',
  },
}
SCSS
$custom: #31299a;
$custom-light: #7864b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31299a",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 244.248,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37442,
    "c": 0.17491,
    "h": 276.9
  },
  "luminance": 0.04572
}

Semantic roles & 50–950 ramp

primary
#31299A
secondary
#B6BD62
accent
#E147D6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #31299A

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

Preview Lab → · Contrast checker → · Palette generator →

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