#313478#313478

#313478 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.3% C 0.114 H 277.2°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#313478
RGBrgb(49, 52, 120)
HSLhsl(237, 42%, 33%)
HSVhsv(237, 59%, 47%)
CMYKcmyk(59.2%, 56.7%, 0%, 52.9%)
CIE-LABlab(25.15, 20.41, -39.46)
CIE-LCHlch(25.15, 44.42, 297.36°)
OKLaboklab(36.28% 0.0143 -0.113)
OKLCHoklch(36.28% 0.114 277.2)
XYZxyz(5.8837, 4.4646, 18.3174)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313478 #787531
analogous
#315778 #313478 #513178
triadic
#313478 #783134 #347831
tetradic
#313478 #783157 #787531 #317851
square
#313478 #783157 #787531 #317851
split-complementary
#313478 #785131 #577831
monochromatic
#0E0E21 #1F214D #313478 #4347A3 #6468C0

Accessibility & contrast

On white

11.09
#313478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#313478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313478
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313478#FFFFFF#000000##FFFFFF
##3134781.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083F7A
Deuteranopia (green-blind)
#003977
Tritanopia (blue-blind)
#084450
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313478;
/* rgb */ color: rgb(49, 52, 120);
/* oklch */ color: oklch(36.3% 0.114 277.2);
Tailwind
colors: {
  custom: {
    50: '#706b9f',
    500: '#313478',
    950: '#000000',
  },
}
SCSS
$custom: #313478;
$custom-light: #706b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#313478",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 120
  },
  "hsl": {
    "h": 237.465,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36283,
    "c": 0.11391,
    "h": 277.2
  },
  "luminance": 0.04465
}

Semantic roles & 50–950 ramp

primary
#313478
secondary
#A7A45E
accent
#CD56D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #313478

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

Preview Lab → · Contrast checker → · Palette generator →

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