#31349C#31349C

#31349C is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.4% C 0.165 H 274.6°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#31349C
RGBrgb(49, 52, 156)
HSLhsl(238, 52%, 40%)
HSVhsv(238, 69%, 61%)
CMYKcmyk(68.6%, 66.7%, 0%, 38.8%)
CIE-LABlab(28.14, 33.29, -56.96)
CIE-LCHlch(28.14, 65.98, 300.31°)
OKLaboklab(39.42% 0.0131 -0.1644)
OKLCHoklch(39.42% 0.165 274.6)
XYZxyz(8.4934, 5.5085, 32.0617)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31349C #9C9931
analogous
#31699C #31349C #64319C
triadic
#31349C #9C3134 #349C31
tetradic
#31349C #9C3169 #9C9931 #319C64
square
#31349C #9C3169 #9C9931 #319C64
split-complementary
#31349C #9C6431 #699C31
monochromatic
#14153F #22246D #31349C #4549C5 #7477D3

Accessibility & contrast

On white

9.99
#31349C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#31349C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31349C
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31349C#FFFFFF#000000##FFFFFF
##31349C1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31349c;
/* rgb */ color: rgb(49, 52, 156);
/* oklch */ color: oklch(39.4% 0.165 274.6);
Tailwind
colors: {
  custom: {
    50: '#786cba',
    500: '#31349c',
    950: '#000000',
  },
}
SCSS
$custom: #31349c;
$custom-light: #786cba;
$custom-dark: #000000;
JSON
{
  "hex": "#31349c",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 156
  },
  "hsl": {
    "h": 238.318,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39417,
    "c": 0.16494,
    "h": 274.6
  },
  "luminance": 0.05509
}

Semantic roles & 50–950 ramp

primary
#31349C
secondary
#BBB96D
accent
#D84CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31349C

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

Preview Lab → · Contrast checker → · Palette generator →

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