#313366#313366

#313366 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.7% C 0.087 H 279.1°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#313366
RGBrgb(49, 51, 102)
HSLhsl(238, 35%, 30%)
HSVhsv(238, 52%, 40%)
CMYKcmyk(52%, 50%, 0%, 60%)
CIE-LABlab(23.60, 14.72, -30.40)
CIE-LCHlch(23.60, 33.78, 295.84°)
OKLaboklab(34.71% 0.0139 -0.0864)
OKLCHoklch(34.71% 0.088 279.1)
XYZxyz(4.8480, 3.9797, 13.0805)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313366 #666431
analogous
#314E66 #313366 #4A3166
triadic
#313366 #663133 #336631
tetradic
#313366 #66314E #666431 #31664A
square
#313366 #66314E #666431 #31664A
split-complementary
#313366 #664A31 #4E6631
monochromatic
#0A0A15 #1D1E3D #313366 #45488F #5F62B2

Accessibility & contrast

On white

11.69
#313366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#313366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313366
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313366#FFFFFF#000000##FFFFFF
##3133661.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3A68
Deuteranopia (green-blind)
#193665
Tritanopia (blue-blind)
#1D3E47
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313366;
/* rgb */ color: rgb(49, 51, 102);
/* oklch */ color: oklch(34.7% 0.087 279.1);
Tailwind
colors: {
  custom: {
    50: '#6d6a92',
    500: '#313366',
    950: '#000000',
  },
}
SCSS
$custom: #313366;
$custom-light: #6d6a92;
$custom-dark: #000000;
JSON
{
  "hex": "#313366",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 102
  },
  "hsl": {
    "h": 237.736,
    "s": 35.099,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34713,
    "c": 0.0875,
    "h": 279.1
  },
  "luminance": 0.0398
}

Semantic roles & 50–950 ramp

primary
#313366
secondary
#97955C
accent
#C75DCB
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #313366

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

Preview Lab → · Contrast checker → · Palette generator →

#313366 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva