#313667#313667

#313667 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.4% C 0.084 H 276.8°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#313667
RGBrgb(49, 54, 103)
HSLhsl(234, 36%, 30%)
HSVhsv(234, 52%, 40%)
CMYKcmyk(52.4%, 47.6%, 0%, 59.6%)
CIE-LABlab(24.55, 13.00, -29.55)
CIE-LCHlch(24.55, 32.28, 293.74°)
OKLaboklab(35.45% 0.01 -0.0839)
OKLCHoklch(35.45% 0.084 276.8)
XYZxyz(5.0332, 4.2703, 13.3884)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313667 #676231
analogous
#315167 #313667 #473167
triadic
#313667 #673136 #366731
tetradic
#313667 #673151 #676231 #316747
square
#313667 #673151 #676231 #316747
split-complementary
#313667 #674731 #516731
monochromatic
#0A0B15 #1D203E #313667 #454C90 #5F67B3

Accessibility & contrast

On white

11.33
#313667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#313667 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313667
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313667#FFFFFF#000000##FFFFFF
##3136671.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223D69
Deuteranopia (green-blind)
#1D3866
Tritanopia (blue-blind)
#1C4049
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313667;
/* rgb */ color: rgb(49, 54, 103);
/* oklch */ color: oklch(35.4% 0.084 276.8);
Tailwind
colors: {
  custom: {
    50: '#6d6c93',
    500: '#313667',
    950: '#000000',
  },
}
SCSS
$custom: #313667;
$custom-light: #6d6c93;
$custom-dark: #000000;
JSON
{
  "hex": "#313667",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 103
  },
  "hsl": {
    "h": 234.444,
    "s": 35.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35448,
    "c": 0.08446,
    "h": 276.8
  },
  "luminance": 0.04271
}

Semantic roles & 50–950 ramp

primary
#313667
secondary
#98935C
accent
#C15CCC
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #313667

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

Preview Lab → · Contrast checker → · Palette generator →

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