#31339B#31339B

#31339B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.165 H 274.9°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#31339B
RGBrgb(49, 51, 155)
HSLhsl(239, 52%, 40%)
HSVhsv(239, 68%, 61%)
CMYKcmyk(68.4%, 67.1%, 0%, 39.2%)
CIE-LABlab(27.81, 33.58, -56.89)
CIE-LCHlch(27.81, 66.06, 300.55°)
OKLaboklab(39.15% 0.014 -0.1642)
OKLCHoklch(39.15% 0.165 274.9)
XYZxyz(8.3649, 5.3864, 31.6029)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31339B #9B9931
analogous
#31689B #31339B #64319B
triadic
#31339B #9B3133 #339B31
tetradic
#31339B #9B3168 #9B9931 #319B64
square
#31339B #9B3168 #9B9931 #319B64
split-complementary
#31339B #9B6431 #689B31
monochromatic
#14143E #22246D #31339B #4547C4 #7375D3

Accessibility & contrast

On white

10.11
#31339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#31339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31339B
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31339B#FFFFFF#000000##FFFFFF
##31339B1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31339b;
/* rgb */ color: rgb(49, 51, 155);
/* oklch */ color: oklch(39.1% 0.165 274.9);
Tailwind
colors: {
  custom: {
    50: '#776bb9',
    500: '#31339b',
    950: '#000000',
  },
}
SCSS
$custom: #31339b;
$custom-light: #776bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31339b",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 238.868,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.3915,
    "c": 0.16481,
    "h": 274.9
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#31339B
secondary
#BBB96D
accent
#D94CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31339B

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

Preview Lab → · Contrast checker → · Palette generator →

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