#31339F#31339F

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

Color values

HEX#31339F
RGBrgb(49, 51, 159)
HSLhsl(239, 53%, 41%)
HSVhsv(239, 69%, 62%)
CMYKcmyk(69.2%, 67.9%, 0%, 37.6%)
CIE-LABlab(28.18, 34.98, -58.72)
CIE-LCHlch(28.18, 68.35, 300.78°)
OKLaboklab(39.53% 0.0135 -0.1696)
OKLCHoklch(39.53% 0.17 274.6)
XYZxyz(8.7064, 5.5230, 33.4014)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31339F #9F9D31
analogous
#316A9F #31339F #66319F
triadic
#31339F #9F3133 #339F31
tetradic
#31339F #9F316A #9F9D31 #319F66
square
#31339F #9F316A #9F9D31 #319F66
split-complementary
#31339F #9F6631 #6A9F31
monochromatic
#141541 #232470 #31339F #4749C6 #7677D5

Accessibility & contrast

On white

9.98
#31339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31339F
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31339F#FFFFFF#000000##FFFFFF
##31339F1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31339f;
/* rgb */ color: rgb(49, 51, 159);
/* oklch */ color: oklch(39.5% 0.170 274.6);
Tailwind
colors: {
  custom: {
    50: '#786bbc',
    500: '#31339f',
    950: '#000000',
  },
}
SCSS
$custom: #31339f;
$custom-light: #786bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#31339f",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 238.909,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39529,
    "c": 0.17013,
    "h": 274.6
  },
  "luminance": 0.05524
}

Semantic roles & 50–950 ramp

primary
#31339F
secondary
#BDBB6F
accent
#DA4CDC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31339F

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

Preview Lab → · Contrast checker → · Palette generator →

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