#313362#313362

#313362 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.4% C 0.081 H 279.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#313362
RGBrgb(49, 51, 98)
HSLhsl(238, 33%, 29%)
HSVhsv(238, 50%, 38%)
CMYKcmyk(50%, 48%, 0%, 61.6%)
CIE-LABlab(23.35, 13.33, -28.21)
CIE-LCHlch(23.35, 31.21, 295.30°)
OKLaboklab(34.43% 0.0132 -0.08)
OKLCHoklch(34.43% 0.081 279.4)
XYZxyz(4.6544, 3.9022, 12.0609)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313362 #626031
analogous
#314C62 #313362 #483162
triadic
#313362 #623133 #336231
tetradic
#313362 #62314C #626031 #316248
square
#313362 #62314C #626031 #316248
split-complementary
#313362 #624831 #4C6231
monochromatic
#0A0B14 #1D1E39 #313362 #45488B #5F62AF

Accessibility & contrast

On white

11.80
#313362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313362
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313362#FFFFFF#000000##FFFFFF
##3133621.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203A64
Deuteranopia (green-blind)
#1C3661
Tritanopia (blue-blind)
#203D45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313362;
/* rgb */ color: rgb(49, 51, 98);
/* oklch */ color: oklch(34.4% 0.081 279.4);
Tailwind
colors: {
  custom: {
    50: '#6c6a8f',
    500: '#313362',
    950: '#000000',
  },
}
SCSS
$custom: #313362;
$custom-light: #6c6a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#313362",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 98
  },
  "hsl": {
    "h": 237.551,
    "s": 33.333,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34433,
    "c": 0.08107,
    "h": 279.4
  },
  "luminance": 0.03902
}

Semantic roles & 50–950 ramp

primary
#313362
secondary
#93915C
accent
#C55EC9
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #313362

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

Preview Lab → · Contrast checker → · Palette generator →

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