#31349F#31349F

#31349F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.169 H 274.4°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#31349F
RGBrgb(49, 52, 159)
HSLhsl(238, 53%, 41%)
HSVhsv(238, 69%, 62%)
CMYKcmyk(69.2%, 67.3%, 0%, 37.6%)
CIE-LABlab(28.41, 34.35, -58.34)
CIE-LCHlch(28.41, 67.70, 300.49°)
OKLaboklab(39.7% 0.0128 -0.1685)
OKLCHoklch(39.7% 0.169 274.4)
XYZxyz(8.7505, 5.6113, 33.4161)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31349F #9F9C31
analogous
#316B9F #31349F #65319F
triadic
#31349F #9F3134 #349F31
tetradic
#31349F #9F316B #9F9C31 #319F65
square
#31349F #9F316B #9F9C31 #319F65
split-complementary
#31349F #9F6531 #6B9F31
monochromatic
#141541 #232570 #31349F #474AC6 #7678D5

Accessibility & contrast

On white

9.89
#31349F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#31349F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31349F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31349F#FFFFFF#000000##FFFFFF
##31349F1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #31349f;
/* rgb */ color: rgb(49, 52, 159);
/* oklch */ color: oklch(39.7% 0.169 274.4);
Tailwind
colors: {
  custom: {
    50: '#786cbc',
    500: '#31349f',
    950: '#000000',
  },
}
SCSS
$custom: #31349f;
$custom-light: #786cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#31349f",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 159
  },
  "hsl": {
    "h": 238.364,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39699,
    "c": 0.16895,
    "h": 274.4
  },
  "luminance": 0.05612
}

Semantic roles & 50–950 ramp

primary
#31349F
secondary
#BDBB6F
accent
#D84CDC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31349F

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

Preview Lab → · Contrast checker → · Palette generator →

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