#31229F#31229F

#31229F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.188 H 277.3°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#31229F
RGBrgb(49, 34, 159)
HSLhsl(247, 65%, 38%)
HSVhsv(247, 79%, 62%)
CMYKcmyk(69.2%, 78.6%, 0%, 37.6%)
CIE-LABlab(24.64, 44.82, -64.55)
CIE-LCHlch(24.64, 78.58, 304.78°)
OKLaboklab(37.01% 0.024 -0.1865)
OKLCHoklch(37.01% 0.188 277.3)
XYZxyz(8.0946, 4.2995, 33.1975)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31229F #909F22
analogous
#22519F #31229F #6F229F
triadic
#31229F #9F3122 #229F31
tetradic
#31229F #9F2251 #909F22 #229F6F
square
#31229F #9F2251 #909F22 #229F6F
split-complementary
#31229F #9F6F22 #519F22
monochromatic
#120C3A #21176D #31229F #412DD1 #6E5FDD

Accessibility & contrast

On white

11.29
#31229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#31229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31229F
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31229F#FFFFFF#000000##FFFFFF
##31229F1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31229f;
/* rgb */ color: rgb(49, 34, 159);
/* oklch */ color: oklch(37.0% 0.188 277.3);
Tailwind
colors: {
  custom: {
    50: '#7a60bd',
    500: '#31229f',
    950: '#000000',
  },
}
SCSS
$custom: #31229f;
$custom-light: #7a60bd;
$custom-dark: #000000;
JSON
{
  "hex": "#31229f",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 247.2,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37007,
    "c": 0.18805,
    "h": 277.3
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#31229F
secondary
#B5C15B
accent
#E840D4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #31229F

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

Preview Lab → · Contrast checker → · Palette generator →

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