#313285#313285

#313285 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.136 H 276.9°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#313285
RGBrgb(49, 50, 133)
HSLhsl(239, 46%, 36%)
HSVhsv(239, 63%, 52%)
CMYKcmyk(63.2%, 62.4%, 0%, 47.8%)
CIE-LABlab(25.64, 26.42, -46.84)
CIE-LCHlch(25.64, 53.78, 299.42°)
OKLaboklab(36.97% 0.0164 -0.1347)
OKLCHoklch(36.97% 0.136 276.9)
XYZxyz(6.6395, 4.6271, 22.7290)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313285 #858431
analogous
#315C85 #313285 #5A3185
triadic
#313285 #853132 #328531
tetradic
#313285 #85315C #858431 #31855A
square
#313285 #85315C #858431 #31855A
split-complementary
#313285 #855A31 #5C8531
monochromatic
#10102C #212158 #313285 #4143B2 #696AC8

Accessibility & contrast

On white

10.91
#313285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#313285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313285
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313285#FFFFFF#000000##FFFFFF
##3132851.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004088
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313285;
/* rgb */ color: rgb(49, 50, 133);
/* oklch */ color: oklch(37.0% 0.136 276.9);
Tailwind
colors: {
  custom: {
    50: '#736aa9',
    500: '#313285',
    950: '#000000',
  },
}
SCSS
$custom: #313285;
$custom-light: #736aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#313285",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 133
  },
  "hsl": {
    "h": 239.286,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36972,
    "c": 0.13573,
    "h": 276.9
  },
  "luminance": 0.04628
}

Semantic roles & 50–950 ramp

primary
#313285
secondary
#AFAE63
accent
#D452D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313285

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

Preview Lab → · Contrast checker → · Palette generator →

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