#313574#313574

#313574 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.2% C 0.106 H 276.9°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#313574
RGBrgb(49, 53, 116)
HSLhsl(236, 41%, 32%)
HSVhsv(236, 58%, 45%)
CMYKcmyk(57.8%, 54.3%, 0%, 54.5%)
CIE-LABlab(25.14, 18.30, -36.94)
CIE-LCHlch(25.14, 41.22, 296.35°)
OKLaboklab(36.18% 0.0129 -0.1056)
OKLCHoklch(36.18% 0.106 276.9)
XYZxyz(5.6911, 4.4597, 17.0805)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313574 #747031
analogous
#315774 #313574 #4F3174
triadic
#313574 #743135 #357431
tetradic
#313574 #743157 #747031 #31744F
square
#313574 #743157 #747031 #31744F
split-complementary
#313574 #744F31 #577431
monochromatic
#0D0E1E #1F2149 #313574 #43499F #6368BD

Accessibility & contrast

On white

11.10
#313574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#313574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313574
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313574#FFFFFF#000000##FFFFFF
##3135741.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133E76
Deuteranopia (green-blind)
#073973
Tritanopia (blue-blind)
#0F434F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313574;
/* rgb */ color: rgb(49, 53, 116);
/* oklch */ color: oklch(36.2% 0.106 276.9);
Tailwind
colors: {
  custom: {
    50: '#6f6c9c',
    500: '#313574',
    950: '#000000',
  },
}
SCSS
$custom: #313574;
$custom-light: #6f6c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#313574",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 116
  },
  "hsl": {
    "h": 236.418,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36178,
    "c": 0.10637,
    "h": 276.9
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#313574
secondary
#A4A05C
accent
#C957D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313574

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

Preview Lab → · Contrast checker → · Palette generator →

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