#31359D#31359D

#31359D is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.165 H 274.3°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#31359D
RGBrgb(49, 53, 157)
HSLhsl(238, 52%, 40%)
HSVhsv(238, 69%, 62%)
CMYKcmyk(68.8%, 66.2%, 0%, 38.4%)
CIE-LABlab(28.47, 33.01, -57.03)
CIE-LCHlch(28.47, 65.89, 300.06°)
OKLaboklab(39.68% 0.0123 -0.1646)
OKLCHoklch(39.68% 0.165 274.3)
XYZxyz(8.6235, 5.6327, 32.5245)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31359D #9D9931
analogous
#316B9D #31359D #63319D
triadic
#31359D #9D3135 #359D31
tetradic
#31359D #9D316B #9D9931 #319D63
square
#31359D #9D316B #9D9931 #319D63
split-complementary
#31359D #9D6331 #6B9D31
monochromatic
#141640 #22256E #31359D #464BC5 #7578D4

Accessibility & contrast

On white

9.87
#31359D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#31359D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31359D
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31359D#FFFFFF#000000##FFFFFF
##31359D1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31359d;
/* rgb */ color: rgb(49, 53, 157);
/* oklch */ color: oklch(39.7% 0.165 274.3);
Tailwind
colors: {
  custom: {
    50: '#786cbb',
    500: '#31359d',
    950: '#000000',
  },
}
SCSS
$custom: #31359d;
$custom-light: #786cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#31359d",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 157
  },
  "hsl": {
    "h": 237.778,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39684,
    "c": 0.16508,
    "h": 274.3
  },
  "luminance": 0.05633
}

Semantic roles & 50–950 ramp

primary
#31359D
secondary
#BCB96E
accent
#D74CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31359D

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

Preview Lab → · Contrast checker → · Palette generator →

#31359D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva