#313783#313783

#313783 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.126 H 275.2°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#313783
RGBrgb(49, 55, 131)
HSLhsl(236, 46%, 35%)
HSVhsv(236, 63%, 51%)
CMYKcmyk(62.6%, 58%, 0%, 48.6%)
CIE-LABlab(26.80, 22.34, -43.71)
CIE-LCHlch(26.80, 49.09, 297.08°)
OKLaboklab(37.78% 0.0114 -0.1255)
OKLCHoklch(37.78% 0.126 275.2)
XYZxyz(6.7282, 5.0235, 22.0834)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313783 #837D31
analogous
#316083 #313783 #543183
triadic
#313783 #833137 #378331
tetradic
#313783 #833160 #837D31 #318354
square
#313783 #833160 #837D31 #318354
split-complementary
#313783 #835431 #608331
monochromatic
#10122A #202456 #313783 #424AB0 #686FC6

Accessibility & contrast

On white

10.47
#313783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#313783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313783
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313783#FFFFFF#000000##FFFFFF
##3137831.0010.472.0010.47
#FFFFFF10.471.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004386
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#004957
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313783;
/* rgb */ color: rgb(49, 55, 131);
/* oklch */ color: oklch(37.8% 0.126 275.2);
Tailwind
colors: {
  custom: {
    50: '#726da8',
    500: '#313783',
    950: '#000000',
  },
}
SCSS
$custom: #313783;
$custom-light: #726da8;
$custom-dark: #000000;
JSON
{
  "hex": "#313783",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 131
  },
  "hsl": {
    "h": 235.61,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37779,
    "c": 0.12602,
    "h": 275.2
  },
  "luminance": 0.05024
}

Semantic roles & 50–950 ramp

primary
#313783
secondary
#AEA862
accent
#CC53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #313783

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

Preview Lab → · Contrast checker → · Palette generator →

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