#313174#313174

#313174 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.4% C 0.112 H 279.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#313174
RGBrgb(49, 49, 116)
HSLhsl(240, 41%, 32%)
HSVhsv(240, 58%, 45%)
CMYKcmyk(57.8%, 57.8%, 0%, 54.5%)
CIE-LABlab(24.03, 21.03, -38.72)
CIE-LCHlch(24.03, 44.06, 298.51°)
OKLaboklab(35.35% 0.0175 -0.1109)
OKLCHoklch(35.35% 0.112 279)
XYZxyz(5.5163, 4.1102, 17.0223)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313174 #747431
analogous
#315374 #313174 #533174
triadic
#313174 #743131 #317431
tetradic
#313174 #743153 #747431 #317453
square
#313174 #743153 #747431 #317453
split-complementary
#313174 #745331 #537431
monochromatic
#0D0D1E #1F1F49 #313174 #43439F #6363BD

Accessibility & contrast

On white

11.52
#313174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#313174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313174
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313174#FFFFFF#000000##FFFFFF
##3131741.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043C76
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#10404D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313174;
/* rgb */ color: rgb(49, 49, 116);
/* oklch */ color: oklch(35.4% 0.112 279.0);
Tailwind
colors: {
  custom: {
    50: '#70699c',
    500: '#313174',
    950: '#000000',
  },
}
SCSS
$custom: #313174;
$custom-light: #70699c;
$custom-dark: #000000;
JSON
{
  "hex": "#313174",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 240,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35352,
    "c": 0.11225,
    "h": 279
  },
  "luminance": 0.04111
}

Semantic roles & 50–950 ramp

primary
#313174
secondary
#A4A45C
accent
#D057D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313174

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

Preview Lab → · Contrast checker → · Palette generator →

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