#31339E#31339E

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

Color values

HEX#31339E
RGBrgb(49, 51, 158)
HSLhsl(239, 53%, 41%)
HSVhsv(239, 69%, 62%)
CMYKcmyk(69%, 67.7%, 0%, 38%)
CIE-LABlab(28.08, 34.63, -58.26)
CIE-LCHlch(28.08, 67.78, 300.72°)
OKLaboklab(39.43% 0.0137 -0.1682)
OKLCHoklch(39.43% 0.169 274.6)
XYZxyz(8.6200, 5.4885, 32.9462)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31339E #9E9C31
analogous
#31699E #31339E #65319E
triadic
#31339E #9E3133 #339E31
tetradic
#31339E #9E3169 #9E9C31 #319E65
square
#31339E #9E3169 #9E9C31 #319E65
split-complementary
#31339E #9E6531 #699E31
monochromatic
#141541 #23246F #31339E #4649C6 #7577D4

Accessibility & contrast

On white

10.01
#31339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#31339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31339E
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31339E#FFFFFF#000000##FFFFFF
##31339E1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31339e;
/* rgb */ color: rgb(49, 51, 158);
/* oklch */ color: oklch(39.4% 0.169 274.6);
Tailwind
colors: {
  custom: {
    50: '#786bbc',
    500: '#31339e',
    950: '#000000',
  },
}
SCSS
$custom: #31339e;
$custom-light: #786bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#31339e",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 238.899,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39434,
    "c": 0.1688,
    "h": 274.6
  },
  "luminance": 0.05489
}

Semantic roles & 50–950 ramp

primary
#31339E
secondary
#BCBB6E
accent
#D94CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31339E

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

Preview Lab → · Contrast checker → · Palette generator →

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