#313175#313175

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

Color values

HEX#313175
RGBrgb(49, 49, 117)
HSLhsl(240, 41%, 33%)
HSVhsv(240, 58%, 46%)
CMYKcmyk(58.1%, 58.1%, 0%, 54.1%)
CIE-LABlab(24.11, 21.39, -39.24)
CIE-LCHlch(24.11, 44.69, 298.59°)
OKLaboklab(35.43% 0.0176 -0.1124)
OKLCHoklch(35.43% 0.114 278.9)
XYZxyz(5.5748, 4.1336, 17.3303)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313175 #757531
analogous
#315375 #313175 #533175
triadic
#313175 #753131 #317531
tetradic
#313175 #753153 #757531 #317553
square
#313175 #753153 #757531 #317553
split-complementary
#313175 #755331 #537531
monochromatic
#0D0D1F #1F1F4A #313175 #4343A0 #6363BE

Accessibility & contrast

On white

11.50
#313175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#313175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313175
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313175#FFFFFF#000000##FFFFFF
##3131751.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023C77
Deuteranopia (green-blind)
#003774
Tritanopia (blue-blind)
#0E414E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313175;
/* rgb */ color: rgb(49, 49, 117);
/* oklch */ color: oklch(35.4% 0.114 278.9);
Tailwind
colors: {
  custom: {
    50: '#70699d',
    500: '#313175',
    950: '#000000',
  },
}
SCSS
$custom: #313175;
$custom-light: #70699d;
$custom-dark: #000000;
JSON
{
  "hex": "#313175",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 117
  },
  "hsl": {
    "h": 240,
    "s": 40.964,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35433,
    "c": 0.11375,
    "h": 278.9
  },
  "luminance": 0.04134
}

Semantic roles & 50–950 ramp

primary
#313175
secondary
#A5A55D
accent
#D157D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313175

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

Preview Lab → · Contrast checker → · Palette generator →

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