#313576#313576

#313576 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.3% C 0.109 H 276.8°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#313576
RGBrgb(49, 53, 118)
HSLhsl(237, 41%, 33%)
HSVhsv(237, 58%, 46%)
CMYKcmyk(58.5%, 55.1%, 0%, 53.7%)
CIE-LABlab(25.28, 19.01, -37.98)
CIE-LCHlch(25.28, 42.47, 296.59°)
OKLaboklab(36.33% 0.013 -0.1086)
OKLCHoklch(36.33% 0.109 276.8)
XYZxyz(5.8087, 4.5068, 17.6998)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313576 #767231
analogous
#315776 #313576 #503176
triadic
#313576 #763135 #357631
tetradic
#313576 #763157 #767231 #317650
square
#313576 #763157 #767231 #317650
split-complementary
#313576 #765031 #577631
monochromatic
#0D0E20 #1F224B #313576 #4348A1 #6368BE

Accessibility & contrast

On white

11.04
#313576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#313576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313576
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313576#FFFFFF#000000##FFFFFF
##3135761.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103F78
Deuteranopia (green-blind)
#023975
Tritanopia (blue-blind)
#0B4450
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313576;
/* rgb */ color: rgb(49, 53, 118);
/* oklch */ color: oklch(36.3% 0.109 276.8);
Tailwind
colors: {
  custom: {
    50: '#706c9e',
    500: '#313576',
    950: '#000000',
  },
}
SCSS
$custom: #313576;
$custom-light: #706c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#313576",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 118
  },
  "hsl": {
    "h": 236.522,
    "s": 41.317,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36333,
    "c": 0.10942,
    "h": 276.8
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#313576
secondary
#A6A25D
accent
#CA57D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313576

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

Preview Lab → · Contrast checker → · Palette generator →

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