#31336A#31336A

#31336A is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.0% C 0.094 H 278.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#31336A
RGBrgb(49, 51, 106)
HSLhsl(238, 37%, 30%)
HSVhsv(238, 54%, 42%)
CMYKcmyk(53.8%, 51.9%, 0%, 58.4%)
CIE-LABlab(23.87, 16.12, -32.56)
CIE-LCHlch(23.87, 36.33, 296.34°)
OKLaboklab(35% 0.0144 -0.0927)
OKLCHoklch(35% 0.094 278.8)
XYZxyz(5.0512, 4.0609, 14.1506)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31336A #6A6831
analogous
#314F6A #31336A #4B316A
triadic
#31336A #6A3133 #336A31
tetradic
#31336A #6A314F #6A6831 #316A4B
square
#31336A #6A314F #6A6831 #316A4B
split-complementary
#31336A #6A4B31 #4F6A31
monochromatic
#0A0B16 #1E1F40 #31336A #444794 #6063B5

Accessibility & contrast

On white

11.59
#31336A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#31336A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31336A
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31336A#FFFFFF#000000##FFFFFF
##31336A1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193B6C
Deuteranopia (green-blind)
#143769
Tritanopia (blue-blind)
#1A3F49
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31336a;
/* rgb */ color: rgb(49, 51, 106);
/* oklch */ color: oklch(35.0% 0.094 278.8);
Tailwind
colors: {
  custom: {
    50: '#6e6a95',
    500: '#31336a',
    950: '#000000',
  },
}
SCSS
$custom: #31336a;
$custom-light: #6e6a95;
$custom-dark: #000000;
JSON
{
  "hex": "#31336a",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 106
  },
  "hsl": {
    "h": 237.895,
    "s": 36.774,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35002,
    "c": 0.09385,
    "h": 278.8
  },
  "luminance": 0.04061
}

Semantic roles & 50–950 ramp

primary
#31336A
secondary
#9B995C
accent
#C95BCD
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #31336A

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

Preview Lab → · Contrast checker → · Palette generator →

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