#313267#313267

#313267 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.091 H 279.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#313267
RGBrgb(49, 50, 103)
HSLhsl(239, 36%, 30%)
HSVhsv(239, 52%, 40%)
CMYKcmyk(52.4%, 51.5%, 0%, 59.6%)
CIE-LABlab(23.38, 15.76, -31.40)
CIE-LCHlch(23.38, 35.14, 296.65°)
OKLaboklab(34.57% 0.0153 -0.0893)
OKLCHoklch(34.57% 0.091 279.7)
XYZxyz(4.8547, 3.9132, 13.3288)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313267 #676631
analogous
#314D67 #313267 #4B3167
triadic
#313267 #673132 #326731
tetradic
#313267 #67314D #676631 #31674B
square
#313267 #67314D #676631 #31674B
split-complementary
#313267 #674B31 #4D6731
monochromatic
#0A0A15 #1D1E3E #313267 #454690 #5F61B3

Accessibility & contrast

On white

11.78
#313267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#313267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313267
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313267#FFFFFF#000000##FFFFFF
##3132671.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3A69
Deuteranopia (green-blind)
#163666
Tritanopia (blue-blind)
#1C3D47
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313267;
/* rgb */ color: rgb(49, 50, 103);
/* oklch */ color: oklch(34.6% 0.091 279.7);
Tailwind
colors: {
  custom: {
    50: '#6d6993',
    500: '#313267',
    950: '#000000',
  },
}
SCSS
$custom: #313267;
$custom-light: #6d6993;
$custom-dark: #000000;
JSON
{
  "hex": "#313267",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 103
  },
  "hsl": {
    "h": 238.889,
    "s": 35.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34567,
    "c": 0.09065,
    "h": 279.7
  },
  "luminance": 0.03913
}

Semantic roles & 50–950 ramp

primary
#313267
secondary
#98975C
accent
#CA5CCC
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #313267

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

Preview Lab → · Contrast checker → · Palette generator →

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