#31349A#31349A

#31349A is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.162 H 274.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#31349A
RGBrgb(49, 52, 154)
HSLhsl(238, 52%, 40%)
HSVhsv(238, 68%, 60%)
CMYKcmyk(68.2%, 66.2%, 0%, 39.6%)
CIE-LABlab(27.96, 32.59, -56.03)
CIE-LCHlch(27.96, 64.82, 300.18°)
OKLaboklab(39.23% 0.0133 -0.1617)
OKLCHoklch(39.23% 0.162 274.7)
XYZxyz(8.3254, 5.4413, 31.1771)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31349A #9A9731
analogous
#31689A #31349A #63319A
triadic
#31349A #9A3134 #349A31
tetradic
#31349A #9A3168 #9A9731 #319A63
square
#31349A #9A3168 #9A9731 #319A63
split-complementary
#31349A #9A6331 #689A31
monochromatic
#13153D #22246C #31349A #4548C4 #7376D2

Accessibility & contrast

On white

10.06
#31349A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#31349A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31349A
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31349A#FFFFFF#000000##FFFFFF
##31349A1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#003D98
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31349a;
/* rgb */ color: rgb(49, 52, 154);
/* oklch */ color: oklch(39.2% 0.162 274.7);
Tailwind
colors: {
  custom: {
    50: '#776cb9',
    500: '#31349a',
    950: '#000000',
  },
}
SCSS
$custom: #31349a;
$custom-light: #776cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31349a",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 154
  },
  "hsl": {
    "h": 238.286,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3923,
    "c": 0.16227,
    "h": 274.7
  },
  "luminance": 0.05442
}

Semantic roles & 50–950 ramp

primary
#31349A
secondary
#BAB86C
accent
#D74DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31349A

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

Preview Lab → · Contrast checker → · Palette generator →

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