#313376#313376

#313376 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.9% C 0.112 H 277.8°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#313376
RGBrgb(49, 51, 118)
HSLhsl(238, 41%, 33%)
HSVhsv(238, 58%, 46%)
CMYKcmyk(58.5%, 56.8%, 0%, 53.7%)
CIE-LABlab(24.73, 20.38, -38.87)
CIE-LCHlch(24.73, 43.89, 297.67°)
OKLaboklab(35.92% 0.0153 -0.1113)
OKLCHoklch(35.92% 0.112 277.8)
XYZxyz(5.7194, 4.3282, 17.6701)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313376 #767431
analogous
#315576 #313376 #513176
triadic
#313376 #763133 #337631
tetradic
#313376 #763155 #767431 #317651
square
#313376 #763155 #767431 #317651
split-complementary
#313376 #765131 #557631
monochromatic
#0D0E20 #1F204B #313376 #4346A1 #6366BE

Accessibility & contrast

On white

11.26
#313376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#313376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313376
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313376#FFFFFF#000000##FFFFFF
##3133761.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083E78
Deuteranopia (green-blind)
#003875
Tritanopia (blue-blind)
#0C424F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313376;
/* rgb */ color: rgb(49, 51, 118);
/* oklch */ color: oklch(35.9% 0.112 277.8);
Tailwind
colors: {
  custom: {
    50: '#706a9e',
    500: '#313376',
    950: '#000000',
  },
}
SCSS
$custom: #313376;
$custom-light: #706a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#313376",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 118
  },
  "hsl": {
    "h": 238.261,
    "s": 41.317,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35919,
    "c": 0.11234,
    "h": 277.8
  },
  "luminance": 0.04329
}

Semantic roles & 50–950 ramp

primary
#313376
secondary
#A6A45D
accent
#CE57D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313376

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

Preview Lab → · Contrast checker → · Palette generator →

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