#313367#313367

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

Color values

HEX#313367
RGBrgb(49, 51, 103)
HSLhsl(238, 36%, 30%)
HSVhsv(238, 52%, 40%)
CMYKcmyk(52.4%, 50.5%, 0%, 59.6%)
CIE-LABlab(23.67, 15.07, -30.94)
CIE-LCHlch(23.67, 34.42, 295.97°)
OKLaboklab(34.78% 0.014 -0.088)
OKLCHoklch(34.78% 0.089 279)
XYZxyz(4.8979, 3.9996, 13.3433)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313367 #676531
analogous
#314E67 #313367 #4A3167
triadic
#313367 #673133 #336731
tetradic
#313367 #67314E #676531 #31674A
square
#313367 #67314E #676531 #31674A
split-complementary
#313367 #674A31 #4E6731
monochromatic
#0A0A15 #1D1E3E #313367 #454890 #5F62B3

Accessibility & contrast

On white

11.67
#313367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313367
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313367#FFFFFF#000000##FFFFFF
##3133671.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3A69
Deuteranopia (green-blind)
#183666
Tritanopia (blue-blind)
#1C3E48
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313367;
/* rgb */ color: rgb(49, 51, 103);
/* oklch */ color: oklch(34.8% 0.089 279.0);
Tailwind
colors: {
  custom: {
    50: '#6d6a93',
    500: '#313367',
    950: '#000000',
  },
}
SCSS
$custom: #313367;
$custom-light: #6d6a93;
$custom-dark: #000000;
JSON
{
  "hex": "#313367",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 103
  },
  "hsl": {
    "h": 237.778,
    "s": 35.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34784,
    "c": 0.0891,
    "h": 279
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#313367
secondary
#98965C
accent
#C75CCC
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #313367

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

Preview Lab → · Contrast checker → · Palette generator →

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