#31349B#31349B

#31349B is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.3% C 0.164 H 274.6°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#31349B
RGBrgb(49, 52, 155)
HSLhsl(238, 52%, 40%)
HSVhsv(238, 68%, 61%)
CMYKcmyk(68.4%, 66.5%, 0%, 39.2%)
CIE-LABlab(28.05, 32.94, -56.50)
CIE-LCHlch(28.05, 65.40, 300.24°)
OKLaboklab(39.32% 0.0132 -0.1631)
OKLCHoklch(39.32% 0.164 274.6)
XYZxyz(8.4091, 5.4747, 31.6176)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31349B #9B9831
analogous
#31699B #31349B #63319B
triadic
#31349B #9B3134 #349B31
tetradic
#31349B #9B3169 #9B9831 #319B63
square
#31349B #9B3169 #9B9831 #319B63
split-complementary
#31349B #9B6331 #699B31
monochromatic
#14153E #22246D #31349B #4549C4 #7376D3

Accessibility & contrast

On white

10.02
#31349B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#31349B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31349B
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31349B#FFFFFF#000000##FFFFFF
##31349B1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31349b;
/* rgb */ color: rgb(49, 52, 155);
/* oklch */ color: oklch(39.3% 0.164 274.6);
Tailwind
colors: {
  custom: {
    50: '#776cb9',
    500: '#31349b',
    950: '#000000',
  },
}
SCSS
$custom: #31349b;
$custom-light: #776cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31349b",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 155
  },
  "hsl": {
    "h": 238.302,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.39323,
    "c": 0.1636,
    "h": 274.6
  },
  "luminance": 0.05476
}

Semantic roles & 50–950 ramp

primary
#31349B
secondary
#BBB96D
accent
#D74CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31349B

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

Preview Lab → · Contrast checker → · Palette generator →

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