#313385#313385

#313385 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.134 H 276.6°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#313385
RGBrgb(49, 51, 133)
HSLhsl(239, 46%, 36%)
HSVhsv(239, 63%, 52%)
CMYKcmyk(63.2%, 61.7%, 0%, 47.8%)
CIE-LABlab(25.90, 25.75, -46.42)
CIE-LCHlch(25.90, 53.09, 299.02°)
OKLaboklab(37.16% 0.0154 -0.1335)
OKLCHoklch(37.16% 0.134 276.6)
XYZxyz(6.6827, 4.7136, 22.7434)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313385 #858331
analogous
#315D85 #313385 #593185
triadic
#313385 #853133 #338531
tetradic
#313385 #85315D #858331 #318559
square
#313385 #85315D #858331 #318559
split-complementary
#313385 #855931 #5D8531
monochromatic
#10112C #212258 #313385 #4144B2 #696BC8

Accessibility & contrast

On white

10.81
#313385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#313385 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313385
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313385#FFFFFF#000000##FFFFFF
##3133851.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#003A83
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313385;
/* rgb */ color: rgb(49, 51, 133);
/* oklch */ color: oklch(37.2% 0.134 276.6);
Tailwind
colors: {
  custom: {
    50: '#736aa9',
    500: '#313385',
    950: '#000000',
  },
}
SCSS
$custom: #313385;
$custom-light: #736aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#313385",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 133
  },
  "hsl": {
    "h": 238.571,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37162,
    "c": 0.13439,
    "h": 276.6
  },
  "luminance": 0.04714
}

Semantic roles & 50–950 ramp

primary
#313385
secondary
#AFAD63
accent
#D352D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313385

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

Preview Lab → · Contrast checker → · Palette generator →

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