#313173#313173

#313173 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.3% C 0.111 H 279.1°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#313173
RGBrgb(49, 49, 115)
HSLhsl(240, 40%, 32%)
HSVhsv(240, 57%, 45%)
CMYKcmyk(57.4%, 57.4%, 0%, 54.9%)
CIE-LABlab(23.96, 20.68, -38.20)
CIE-LCHlch(23.96, 43.44, 298.43°)
OKLaboklab(35.27% 0.0175 -0.1093)
OKLCHoklch(35.27% 0.111 279.1)
XYZxyz(5.4585, 4.0870, 16.7176)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313173 #737331
analogous
#315273 #313173 #523173
triadic
#313173 #733131 #317331
tetradic
#313173 #733152 #737331 #317352
square
#313173 #733152 #737331 #317352
split-complementary
#313173 #735231 #527331
monochromatic
#0C0C1D #1F1F48 #313173 #43439E #6262BC

Accessibility & contrast

On white

11.55
#313173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313173
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313173#FFFFFF#000000##FFFFFF
##3131731.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063C75
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#11404D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313173;
/* rgb */ color: rgb(49, 49, 115);
/* oklch */ color: oklch(35.3% 0.111 279.1);
Tailwind
colors: {
  custom: {
    50: '#6f699c',
    500: '#313173',
    950: '#000000',
  },
}
SCSS
$custom: #313173;
$custom-light: #6f699c;
$custom-dark: #000000;
JSON
{
  "hex": "#313173",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 240,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35272,
    "c": 0.11074,
    "h": 279.1
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313173

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

Preview Lab → · Contrast checker → · Palette generator →

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