#313368#313368

#313368 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.9% C 0.091 H 279.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#313368
RGBrgb(49, 51, 104)
HSLhsl(238, 36%, 30%)
HSVhsv(238, 53%, 41%)
CMYKcmyk(52.9%, 51%, 0%, 59.2%)
CIE-LABlab(23.74, 15.42, -31.49)
CIE-LCHlch(23.74, 35.06, 296.10°)
OKLaboklab(34.86% 0.0141 -0.0896)
OKLCHoklch(34.86% 0.091 279)
XYZxyz(4.9484, 4.0198, 13.6092)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313368 #686631
analogous
#314F68 #313368 #4A3168
triadic
#313368 #683133 #336831
tetradic
#313368 #68314F #686631 #31684A
square
#313368 #68314F #686631 #31684A
split-complementary
#313368 #684A31 #4F6831
monochromatic
#0A0A15 #1D1F3E #313368 #454792 #6063B4

Accessibility & contrast

On white

11.64
#313368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313368
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313368#FFFFFF#000000##FFFFFF
##3133681.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3B6A
Deuteranopia (green-blind)
#163667
Tritanopia (blue-blind)
#1B3E48
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313368;
/* rgb */ color: rgb(49, 51, 104);
/* oklch */ color: oklch(34.9% 0.091 279.0);
Tailwind
colors: {
  custom: {
    50: '#6d6a93',
    500: '#313368',
    950: '#000000',
  },
}
SCSS
$custom: #313368;
$custom-light: #6d6a93;
$custom-dark: #000000;
JSON
{
  "hex": "#313368",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 104
  },
  "hsl": {
    "h": 237.818,
    "s": 35.948,
    "l": 30
  },
  "oklch": {
    "l": 0.34856,
    "c": 0.09069,
    "h": 279
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#313368
secondary
#99975C
accent
#C85CCC
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #313368

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

Preview Lab → · Contrast checker → · Palette generator →

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