#313179#313179

#313179 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.8% C 0.120 H 278.5°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#313179
RGBrgb(49, 49, 121)
HSLhsl(240, 42%, 33%)
HSVhsv(240, 60%, 47%)
CMYKcmyk(59.5%, 59.5%, 0%, 52.5%)
CIE-LABlab(24.42, 22.81, -41.28)
CIE-LCHlch(24.42, 47.16, 298.92°)
OKLaboklab(35.76% 0.0176 -0.1184)
OKLCHoklch(35.76% 0.12 278.5)
XYZxyz(5.8150, 4.2297, 18.5954)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313179 #797931
analogous
#315579 #313179 #553179
triadic
#313179 #793131 #317931
tetradic
#313179 #793155 #797931 #317955
square
#313179 #793155 #797931 #317955
split-complementary
#313179 #795531 #557931
monochromatic
#0E0E22 #1F1F4D #313179 #4343A5 #6464C0

Accessibility & contrast

On white

11.38
#313179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#313179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313179
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313179#FFFFFF#000000##FFFFFF
##3131791.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#074250
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313179;
/* rgb */ color: rgb(49, 49, 121);
/* oklch */ color: oklch(35.8% 0.120 278.5);
Tailwind
colors: {
  custom: {
    50: '#7169a0',
    500: '#313179',
    950: '#000000',
  },
}
SCSS
$custom: #313179;
$custom-light: #7169a0;
$custom-dark: #000000;
JSON
{
  "hex": "#313179",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3576,
    "c": 0.11971,
    "h": 278.5
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#313179
secondary
#A8A85E
accent
#D256D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #313179

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

Preview Lab → · Contrast checker → · Palette generator →

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