#31369E#31369E

#31369E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.165 H 274.0°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#31369E
RGBrgb(49, 54, 158)
HSLhsl(237, 53%, 41%)
HSVhsv(237, 69%, 62%)
CMYKcmyk(69%, 65.8%, 0%, 38%)
CIE-LABlab(28.80, 32.72, -57.10)
CIE-LCHlch(28.80, 65.81, 299.82°)
OKLaboklab(39.95% 0.0114 -0.1648)
OKLCHoklch(39.95% 0.165 274)
XYZxyz(8.7553, 5.7591, 32.9913)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31369E #9E9931
analogous
#316C9E #31369E #62319E
triadic
#31369E #9E3136 #369E31
tetradic
#31369E #9E316C #9E9931 #319E62
square
#31369E #9E316C #9E9931 #319E62
split-complementary
#31369E #9E6231 #6C9E31
monochromatic
#141641 #23266F #31369E #464CC6 #757AD4

Accessibility & contrast

On white

9.76
#31369E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#31369E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31369E
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31369E#FFFFFF#000000##FFFFFF
##31369E1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#005165
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #31369e;
/* rgb */ color: rgb(49, 54, 158);
/* oklch */ color: oklch(40.0% 0.165 274.0);
Tailwind
colors: {
  custom: {
    50: '#786dbc',
    500: '#31369e',
    950: '#000000',
  },
}
SCSS
$custom: #31369e;
$custom-light: #786dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#31369e",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 158
  },
  "hsl": {
    "h": 237.248,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39953,
    "c": 0.16522,
    "h": 274
  },
  "luminance": 0.0576
}

Semantic roles & 50–950 ramp

primary
#31369E
secondary
#BCB96E
accent
#D54CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31369E

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

Preview Lab → · Contrast checker → · Palette generator →

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