#31336F#31336F

#31336F is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.4% C 0.102 H 278.4°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#31336F
RGBrgb(49, 51, 111)
HSLhsl(238, 39%, 31%)
HSVhsv(238, 56%, 44%)
CMYKcmyk(55.9%, 54.1%, 0%, 56.5%)
CIE-LABlab(24.22, 17.89, -35.22)
CIE-LCHlch(24.22, 39.50, 296.93°)
OKLaboklab(35.38% 0.0149 -0.1006)
OKLCHoklch(35.38% 0.102 278.4)
XYZxyz(5.3188, 4.1680, 15.5601)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31336F #6F6D31
analogous
#31526F #31336F #4E316F
triadic
#31336F #6F3133 #336F31
tetradic
#31336F #6F3152 #6F6D31 #316F4E
square
#31336F #6F3152 #6F6D31 #316F4E
split-complementary
#31336F #6F4E31 #526F31
monochromatic
#0C0C1A #1E1F45 #31336F #444799 #6164B9

Accessibility & contrast

On white

11.45
#31336F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31336F
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31336F#FFFFFF#000000##FFFFFF
##31336F1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C71
Deuteranopia (green-blind)
#0C376E
Tritanopia (blue-blind)
#15404C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31336f;
/* rgb */ color: rgb(49, 51, 111);
/* oklch */ color: oklch(35.4% 0.102 278.4);
Tailwind
colors: {
  custom: {
    50: '#6f6a99',
    500: '#31336f',
    950: '#000000',
  },
}
SCSS
$custom: #31336f;
$custom-light: #6f6a99;
$custom-dark: #000000;
JSON
{
  "hex": "#31336f",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 238.065,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35375,
    "c": 0.10165,
    "h": 278.4
  },
  "luminance": 0.04168
}

Semantic roles & 50–950 ramp

primary
#31336F
secondary
#A09E5C
accent
#CB59CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #31336F

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

Preview Lab → · Contrast checker → · Palette generator →

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