#313883#313883

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

Color values

HEX#313883
RGBrgb(49, 56, 131)
HSLhsl(235, 46%, 35%)
HSVhsv(235, 63%, 51%)
CMYKcmyk(62.6%, 57.3%, 0%, 48.6%)
CIE-LABlab(27.07, 21.67, -43.27)
CIE-LCHlch(27.07, 48.39, 296.60°)
OKLaboklab(37.98% 0.0104 -0.1242)
OKLCHoklch(37.98% 0.125 274.8)
XYZxyz(6.7762, 5.1195, 22.0994)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313883 #837C31
analogous
#316183 #313883 #533183
triadic
#313883 #833138 #388331
tetradic
#313883 #833161 #837C31 #318353
square
#313883 #833161 #837C31 #318353
split-complementary
#313883 #835331 #618331
monochromatic
#10122A #202556 #313883 #424BB0 #6870C6

Accessibility & contrast

On white

10.38
#313883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313883
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313883#FFFFFF#000000##FFFFFF
##3138831.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004486
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313883;
/* rgb */ color: rgb(49, 56, 131);
/* oklch */ color: oklch(38.0% 0.125 274.8);
Tailwind
colors: {
  custom: {
    50: '#726ea8',
    500: '#313883',
    950: '#000000',
  },
}
SCSS
$custom: #313883;
$custom-light: #726ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#313883",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 131
  },
  "hsl": {
    "h": 234.878,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37981,
    "c": 0.12463,
    "h": 274.8
  },
  "luminance": 0.0512
}

Semantic roles & 50–950 ramp

primary
#313883
secondary
#AEA762
accent
#CA53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #313883

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

Preview Lab → · Contrast checker → · Palette generator →

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