#313479#313479

#313479 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.4% C 0.115 H 277.1°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#313479
RGBrgb(49, 52, 121)
HSLhsl(238, 42%, 33%)
HSVhsv(238, 60%, 47%)
CMYKcmyk(59.5%, 57%, 0%, 52.5%)
CIE-LABlab(25.23, 20.77, -39.97)
CIE-LCHlch(25.23, 45.05, 297.46°)
OKLaboklab(36.36% 0.0143 -0.1145)
OKLCHoklch(36.36% 0.115 277.1)
XYZxyz(5.9447, 4.4890, 18.6387)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313479 #797631
analogous
#315879 #313479 #523179
triadic
#313479 #793134 #347931
tetradic
#313479 #793158 #797631 #317952
square
#313479 #793158 #797631 #317952
split-complementary
#313479 #795231 #587931
monochromatic
#0E0F22 #1F214D #313479 #4347A5 #6468C0

Accessibility & contrast

On white

11.07
#313479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#313479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313479
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313479#FFFFFF#000000##FFFFFF
##3134791.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053F7B
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#064451
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313479;
/* rgb */ color: rgb(49, 52, 121);
/* oklch */ color: oklch(36.4% 0.115 277.1);
Tailwind
colors: {
  custom: {
    50: '#706ba0',
    500: '#313479',
    950: '#000000',
  },
}
SCSS
$custom: #313479;
$custom-light: #706ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#313479",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 121
  },
  "hsl": {
    "h": 237.5,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36362,
    "c": 0.11541,
    "h": 277.1
  },
  "luminance": 0.04489
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313479

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

Preview Lab → · Contrast checker → · Palette generator →

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