#313882#313882

#313882 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.123 H 274.8°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#313882
RGBrgb(49, 56, 130)
HSLhsl(235, 45%, 35%)
HSVhsv(235, 62%, 51%)
CMYKcmyk(62.3%, 56.9%, 0%, 49%)
CIE-LABlab(27.00, 21.30, -42.77)
CIE-LCHlch(27.00, 47.78, 296.48°)
OKLaboklab(37.9% 0.0103 -0.1227)
OKLCHoklch(37.9% 0.123 274.8)
XYZxyz(6.7087, 5.0925, 21.7442)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313882 #827B31
analogous
#316082 #313882 #533182
triadic
#313882 #823138 #388231
tetradic
#313882 #823160 #827B31 #318253
square
#313882 #823160 #827B31 #318253
split-complementary
#313882 #825331 #608231
monochromatic
#0F1229 #202556 #313882 #424BAE #6870C6

Accessibility & contrast

On white

10.40
#313882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313882
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313882#FFFFFF#000000##FFFFFF
##3138821.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024385
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#004957
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313882;
/* rgb */ color: rgb(49, 56, 130);
/* oklch */ color: oklch(37.9% 0.123 274.8);
Tailwind
colors: {
  custom: {
    50: '#726ea7',
    500: '#313882',
    950: '#000000',
  },
}
SCSS
$custom: #313882;
$custom-light: #726ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#313882",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 130
  },
  "hsl": {
    "h": 234.815,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37901,
    "c": 0.12315,
    "h": 274.8
  },
  "luminance": 0.05093
}

Semantic roles & 50–950 ramp

primary
#313882
secondary
#ADA762
accent
#CA53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313882

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

Preview Lab → · Contrast checker → · Palette generator →

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