#313379#313379

#313379 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 36.2% C 0.117 H 277.6°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#313379
RGBrgb(49, 51, 121)
HSLhsl(238, 42%, 33%)
HSVhsv(238, 60%, 47%)
CMYKcmyk(59.5%, 57.9%, 0%, 52.5%)
CIE-LABlab(24.95, 21.45, -40.41)
CIE-LCHlch(24.95, 45.75, 297.96°)
OKLaboklab(36.16% 0.0154 -0.1158)
OKLCHoklch(36.16% 0.117 277.6)
XYZxyz(5.9005, 4.4007, 18.6239)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313379 #797731
analogous
#315779 #313379 #533179
triadic
#313379 #793133 #337931
tetradic
#313379 #793157 #797731 #317953
square
#313379 #793157 #797731 #317953
split-complementary
#313379 #795331 #577931
monochromatic
#0E0E22 #1F214D #313379 #4345A5 #6467C0

Accessibility & contrast

On white

11.17
#313379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313379
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313379#FFFFFF#000000##FFFFFF
##3133791.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013E7B
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#064350
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313379;
/* rgb */ color: rgb(49, 51, 121);
/* oklch */ color: oklch(36.2% 0.117 277.6);
Tailwind
colors: {
  custom: {
    50: '#706aa0',
    500: '#313379',
    950: '#000000',
  },
}
SCSS
$custom: #313379;
$custom-light: #706aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#313379",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 121
  },
  "hsl": {
    "h": 238.333,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36159,
    "c": 0.11684,
    "h": 277.6
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#313379
secondary
#A8A65E
accent
#CF56D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #313379

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

Preview Lab → · Contrast checker → · Palette generator →

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