#313384#313384

#313384 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.133 H 276.7°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#313384
RGBrgb(49, 51, 132)
HSLhsl(239, 46%, 35%)
HSVhsv(239, 63%, 52%)
CMYKcmyk(62.9%, 61.4%, 0%, 48.2%)
CIE-LABlab(25.82, 25.39, -45.93)
CIE-LCHlch(25.82, 52.48, 298.94°)
OKLaboklab(37.08% 0.0155 -0.132)
OKLCHoklch(37.08% 0.133 276.7)
XYZxyz(6.6140, 4.6861, 22.3813)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313384 #848231
analogous
#315C84 #313384 #583184
triadic
#313384 #843133 #338431
tetradic
#313384 #84315C #848231 #318458
square
#313384 #84315C #848231 #318458
split-complementary
#313384 #845831 #5C8431
monochromatic
#10112B #202257 #313384 #4244B1 #686BC7

Accessibility & contrast

On white

10.84
#313384 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313384
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313384#FFFFFF#000000##FFFFFF
##3133841.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004187
Deuteranopia (green-blind)
#003A82
Tritanopia (blue-blind)
#004756
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313384;
/* rgb */ color: rgb(49, 51, 132);
/* oklch */ color: oklch(37.1% 0.133 276.7);
Tailwind
colors: {
  custom: {
    50: '#736aa8',
    500: '#313384',
    950: '#000000',
  },
}
SCSS
$custom: #313384;
$custom-light: #736aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#313384",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 132
  },
  "hsl": {
    "h": 238.554,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37076,
    "c": 0.13295,
    "h": 276.7
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#313384
secondary
#AEAD62
accent
#D252D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313384

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

Preview Lab → · Contrast checker → · Palette generator →

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