#313378#313378

#313378 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 36.1% C 0.115 H 277.7°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#313378
RGBrgb(49, 51, 120)
HSLhsl(238, 42%, 33%)
HSVhsv(238, 59%, 47%)
CMYKcmyk(59.2%, 57.5%, 0%, 52.9%)
CIE-LABlab(24.88, 21.09, -39.90)
CIE-LCHlch(24.88, 45.13, 297.87°)
OKLaboklab(36.08% 0.0154 -0.1143)
OKLCHoklch(36.08% 0.115 277.7)
XYZxyz(5.8395, 4.3763, 18.3026)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313378 #787631
analogous
#315678 #313378 #523178
triadic
#313378 #783133 #337831
tetradic
#313378 #783156 #787631 #317852
square
#313378 #783156 #787631 #317852
split-complementary
#313378 #785231 #567831
monochromatic
#0E0E21 #1F214D #313378 #4345A3 #6466C0

Accessibility & contrast

On white

11.20
#313378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#313378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313378
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313378#FFFFFF#000000##FFFFFF
##3133781.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033E7A
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#084350
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313378;
/* rgb */ color: rgb(49, 51, 120);
/* oklch */ color: oklch(36.1% 0.115 277.7);
Tailwind
colors: {
  custom: {
    50: '#706a9f',
    500: '#313378',
    950: '#000000',
  },
}
SCSS
$custom: #313378;
$custom-light: #706a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#313378",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 120
  },
  "hsl": {
    "h": 238.31,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36079,
    "c": 0.11535,
    "h": 277.7
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#313378
secondary
#A7A55E
accent
#CE56D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #313378

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

Preview Lab → · Contrast checker → · Palette generator →

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