#313383#313383

#313383 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.132 H 276.8°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#313383
RGBrgb(49, 51, 131)
HSLhsl(239, 46%, 35%)
HSVhsv(239, 63%, 51%)
CMYKcmyk(62.6%, 61.1%, 0%, 48.6%)
CIE-LABlab(25.74, 25.04, -45.43)
CIE-LCHlch(25.74, 51.88, 298.86°)
OKLaboklab(36.99% 0.0155 -0.1306)
OKLCHoklch(36.99% 0.132 276.8)
XYZxyz(6.5459, 4.6588, 22.0226)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313383 #838131
analogous
#315C83 #313383 #583183
triadic
#313383 #833133 #338331
tetradic
#313383 #83315C #838131 #318358
square
#313383 #83315C #838131 #318358
split-complementary
#313383 #835831 #5C8331
monochromatic
#10102A #202256 #313383 #4244B0 #686AC6

Accessibility & contrast

On white

10.87
#313383 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313383
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313383#FFFFFF#000000##FFFFFF
##3133831.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004186
Deuteranopia (green-blind)
#003A81
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313383;
/* rgb */ color: rgb(49, 51, 131);
/* oklch */ color: oklch(37.0% 0.132 276.8);
Tailwind
colors: {
  custom: {
    50: '#726aa8',
    500: '#313383',
    950: '#000000',
  },
}
SCSS
$custom: #313383;
$custom-light: #726aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#313383",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 131
  },
  "hsl": {
    "h": 238.537,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36991,
    "c": 0.13151,
    "h": 276.8
  },
  "luminance": 0.04659
}

Semantic roles & 50–950 ramp

primary
#313383
secondary
#AEAC62
accent
#D253D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313383

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

Preview Lab → · Contrast checker → · Palette generator →

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