#31336E#31336E

#31336E is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.3% C 0.100 H 278.5°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#31336E
RGBrgb(49, 51, 110)
HSLhsl(238, 38%, 31%)
HSVhsv(238, 55%, 43%)
CMYKcmyk(55.5%, 53.6%, 0%, 56.9%)
CIE-LABlab(24.15, 17.53, -34.69)
CIE-LCHlch(24.15, 38.87, 296.81°)
OKLaboklab(35.3% 0.0148 -0.099)
OKLCHoklch(35.3% 0.1 278.5)
XYZxyz(5.2640, 4.1461, 15.2717)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31336E #6E6C31
analogous
#31516E #31336E #4D316E
triadic
#31336E #6E3133 #336E31
tetradic
#31336E #6E3151 #6E6C31 #316E4D
square
#31336E #6E3151 #6E6C31 #316E4D
split-complementary
#31336E #6E4D31 #516E31
monochromatic
#0B0C19 #1E1F44 #31336E #444798 #6164B9

Accessibility & contrast

On white

11.48
#31336E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#31336E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31336E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31336E#FFFFFF#000000##FFFFFF
##31336E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153C70
Deuteranopia (green-blind)
#0E376D
Tritanopia (blue-blind)
#16404B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31336e;
/* rgb */ color: rgb(49, 51, 110);
/* oklch */ color: oklch(35.3% 0.100 278.5);
Tailwind
colors: {
  custom: {
    50: '#6e6a98',
    500: '#31336e',
    950: '#000000',
  },
}
SCSS
$custom: #31336e;
$custom-light: #6e6a98;
$custom-dark: #000000;
JSON
{
  "hex": "#31336e",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 110
  },
  "hsl": {
    "h": 238.033,
    "s": 38.365,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35299,
    "c": 0.1001,
    "h": 278.5
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#31336E
secondary
#9F9D5C
accent
#CA59CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #31336E

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

Preview Lab → · Contrast checker → · Palette generator →

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