#313282#313282

#313282 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.131 H 277.2°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#313282
RGBrgb(49, 50, 130)
HSLhsl(239, 45%, 35%)
HSVhsv(239, 62%, 51%)
CMYKcmyk(62.3%, 61.5%, 0%, 49%)
CIE-LABlab(25.40, 25.35, -45.36)
CIE-LCHlch(25.40, 51.96, 299.19°)
OKLaboklab(36.71% 0.0165 -0.1304)
OKLCHoklch(36.71% 0.131 277.2)
XYZxyz(6.4352, 4.5454, 21.6530)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313282 #828131
analogous
#315B82 #313282 #583182
triadic
#313282 #823132 #328231
tetradic
#313282 #82315B #828131 #318258
square
#313282 #82315B #828131 #318258
split-complementary
#313282 #825831 #5B8231
monochromatic
#0F1029 #202156 #313282 #4243AE #6869C6

Accessibility & contrast

On white

11.00
#313282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#313282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313282
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313282#FFFFFF#000000##FFFFFF
##3132821.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313282;
/* rgb */ color: rgb(49, 50, 130);
/* oklch */ color: oklch(36.7% 0.131 277.2);
Tailwind
colors: {
  custom: {
    50: '#726aa7',
    500: '#313282',
    950: '#000000',
  },
}
SCSS
$custom: #313282;
$custom-light: #726aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#313282",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 130
  },
  "hsl": {
    "h": 239.259,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36713,
    "c": 0.13144,
    "h": 277.2
  },
  "luminance": 0.04546
}

Semantic roles & 50–950 ramp

primary
#313282
secondary
#ADAC62
accent
#D353D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #313282

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

Preview Lab → · Contrast checker → · Palette generator →

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