#313382#313382

#313382 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.130 H 276.8°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#313382
RGBrgb(49, 51, 130)
HSLhsl(239, 45%, 35%)
HSVhsv(239, 62%, 51%)
CMYKcmyk(62.3%, 60.8%, 0%, 49%)
CIE-LABlab(25.66, 24.68, -44.94)
CIE-LCHlch(25.66, 51.27, 298.77°)
OKLaboklab(36.91% 0.0155 -0.1291)
OKLCHoklch(36.91% 0.13 276.8)
XYZxyz(6.4784, 4.6318, 21.6674)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313382 #828031
analogous
#315B82 #313382 #583182
triadic
#313382 #823133 #338231
tetradic
#313382 #82315B #828031 #318258
square
#313382 #82315B #828031 #318258
split-complementary
#313382 #825831 #5B8231
monochromatic
#0F1029 #202256 #313382 #4244AE #686AC6

Accessibility & contrast

On white

10.90
#313382 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313382
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313382#FFFFFF#000000##FFFFFF
##3133821.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004085
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313382;
/* rgb */ color: rgb(49, 51, 130);
/* oklch */ color: oklch(36.9% 0.130 276.8);
Tailwind
colors: {
  custom: {
    50: '#726aa7',
    500: '#313382',
    950: '#000000',
  },
}
SCSS
$custom: #313382;
$custom-light: #726aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#313382",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 130
  },
  "hsl": {
    "h": 238.519,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36906,
    "c": 0.13008,
    "h": 276.8
  },
  "luminance": 0.04632
}

Semantic roles & 50–950 ramp

primary
#313382
secondary
#ADAB62
accent
#D253D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #313382

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

Preview Lab → · Contrast checker → · Palette generator →

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