#313166#313166

#313166 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.3% C 0.091 H 280.5°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#313166
RGBrgb(49, 49, 102)
HSLhsl(240, 35%, 30%)
HSVhsv(240, 52%, 40%)
CMYKcmyk(52%, 52%, 0%, 60%)
CIE-LABlab(23.03, 16.11, -31.32)
CIE-LCHlch(23.03, 35.22, 297.21°)
OKLaboklab(34.28% 0.0165 -0.0891)
OKLCHoklch(34.28% 0.091 280.5)
XYZxyz(4.7625, 3.8086, 13.0520)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313166 #666631
analogous
#314C66 #313166 #4C3166
triadic
#313166 #663131 #316631
tetradic
#313166 #66314C #666631 #31664C
square
#313166 #66314C #666631 #31664C
split-complementary
#313166 #664C31 #4C6631
monochromatic
#0A0A15 #1D1D3D #313166 #45458F #5F5FB2

Accessibility & contrast

On white

11.92
#313166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#313166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313166
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313166#FFFFFF#000000##FFFFFF
##3131661.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193968
Deuteranopia (green-blind)
#153565
Tritanopia (blue-blind)
#1D3C46
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313166;
/* rgb */ color: rgb(49, 49, 102);
/* oklch */ color: oklch(34.3% 0.091 280.5);
Tailwind
colors: {
  custom: {
    50: '#6d6992',
    500: '#313166',
    950: '#000000',
  },
}
SCSS
$custom: #313166;
$custom-light: #6d6992;
$custom-dark: #000000;
JSON
{
  "hex": "#313166",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 240,
    "s": 35.099,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34278,
    "c": 0.09064,
    "h": 280.5
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#313166
secondary
#97975C
accent
#CB5DCB
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #313166

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

Preview Lab → · Contrast checker → · Palette generator →

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