#31349E#31349E

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

Color values

HEX#31349E
RGBrgb(49, 52, 158)
HSLhsl(238, 53%, 41%)
HSVhsv(238, 69%, 62%)
CMYKcmyk(69%, 67.1%, 0%, 38%)
CIE-LABlab(28.32, 34.00, -57.88)
CIE-LCHlch(28.32, 67.12, 300.43°)
OKLaboklab(39.61% 0.0129 -0.1671)
OKLCHoklch(39.61% 0.168 274.4)
XYZxyz(8.6641, 5.5768, 32.9610)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31349E #9E9B31
analogous
#316A9E #31349E #65319E
triadic
#31349E #9E3134 #349E31
tetradic
#31349E #9E316A #9E9B31 #319E65
square
#31349E #9E316A #9E9B31 #319E65
split-complementary
#31349E #9E6531 #6A9E31
monochromatic
#141541 #23256F #31349E #464AC6 #7578D4

Accessibility & contrast

On white

9.93
#31349E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31349E
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31349E#FFFFFF#000000##FFFFFF
##31349E1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #31349e;
/* rgb */ color: rgb(49, 52, 158);
/* oklch */ color: oklch(39.6% 0.168 274.4);
Tailwind
colors: {
  custom: {
    50: '#786cbc',
    500: '#31349e',
    950: '#000000',
  },
}
SCSS
$custom: #31349e;
$custom-light: #786cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#31349e",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 158
  },
  "hsl": {
    "h": 238.349,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39605,
    "c": 0.16762,
    "h": 274.4
  },
  "luminance": 0.05578
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31349E

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

Preview Lab → · Contrast checker → · Palette generator →

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