#31336C#31336C

#31336C is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.1% C 0.097 H 278.6°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#31336C
RGBrgb(49, 51, 108)
HSLhsl(238, 38%, 31%)
HSVhsv(238, 55%, 42%)
CMYKcmyk(54.6%, 52.8%, 0%, 57.6%)
CIE-LABlab(24.01, 16.83, -33.63)
CIE-LCHlch(24.01, 37.61, 296.58°)
OKLaboklab(35.15% 0.0146 -0.0959)
OKLCHoklch(35.15% 0.097 278.6)
XYZxyz(5.1564, 4.1030, 14.7047)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31336C #6C6A31
analogous
#31506C #31336C #4C316C
triadic
#31336C #6C3133 #336C31
tetradic
#31336C #6C3150 #6C6A31 #316C4C
square
#31336C #6C3150 #6C6A31 #316C4C
split-complementary
#31336C #6C4C31 #506C31
monochromatic
#0B0B18 #1E1F42 #31336C #444796 #6063B7

Accessibility & contrast

On white

11.53
#31336C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#31336C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31336C
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31336C#FFFFFF#000000##FFFFFF
##31336C1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6E
Deuteranopia (green-blind)
#11376B
Tritanopia (blue-blind)
#18404A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31336c;
/* rgb */ color: rgb(49, 51, 108);
/* oklch */ color: oklch(35.1% 0.097 278.6);
Tailwind
colors: {
  custom: {
    50: '#6e6a96',
    500: '#31336c',
    950: '#000000',
  },
}
SCSS
$custom: #31336c;
$custom-light: #6e6a96;
$custom-dark: #000000;
JSON
{
  "hex": "#31336c",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 108
  },
  "hsl": {
    "h": 237.966,
    "s": 37.58,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3515,
    "c": 0.09698,
    "h": 278.6
  },
  "luminance": 0.04103
}

Semantic roles & 50–950 ramp

primary
#31336C
secondary
#9D9B5C
accent
#CA5ACE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #31336C

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

Preview Lab → · Contrast checker → · Palette generator →

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