#313585#313585

#313585 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.5% C 0.132 H 275.9°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#313585
RGBrgb(49, 53, 133)
HSLhsl(237, 46%, 36%)
HSVhsv(237, 63%, 52%)
CMYKcmyk(63.2%, 60.2%, 0%, 47.8%)
CIE-LABlab(26.43, 24.42, -45.57)
CIE-LCHlch(26.43, 51.70, 298.18°)
OKLaboklab(37.55% 0.0135 -0.131)
OKLCHoklch(37.55% 0.132 275.9)
XYZxyz(6.7720, 4.8921, 22.7732)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313585 #858131
analogous
#315F85 #313585 #573185
triadic
#313585 #853135 #358531
tetradic
#313585 #85315F #858131 #318557
square
#313585 #85315F #858131 #318557
split-complementary
#313585 #855731 #5F8531
monochromatic
#10112C #212358 #313585 #4147B2 #696DC8

Accessibility & contrast

On white

10.61
#313585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#313585 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313585
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313585#FFFFFF#000000##FFFFFF
##3135851.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#003B83
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313585;
/* rgb */ color: rgb(49, 53, 133);
/* oklch */ color: oklch(37.5% 0.132 275.9);
Tailwind
colors: {
  custom: {
    50: '#736ca9',
    500: '#313585',
    950: '#000000',
  },
}
SCSS
$custom: #313585;
$custom-light: #736ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#313585",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 133
  },
  "hsl": {
    "h": 237.143,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37549,
    "c": 0.13168,
    "h": 275.9
  },
  "luminance": 0.04893
}

Semantic roles & 50–950 ramp

primary
#313585
secondary
#AFAB63
accent
#D052D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313585

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

Preview Lab → · Contrast checker → · Palette generator →

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