#313DBB#313DBB

#313DBB is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.9% C 0.195 H 271.2°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#313DBB
RGBrgb(49, 61, 187)
HSLhsl(235, 58%, 46%)
HSVhsv(235, 74%, 73%)
CMYKcmyk(73.8%, 67.4%, 0%, 26.7%)
CIE-LABlab(33.09, 38.57, -67.41)
CIE-LCHlch(33.09, 77.67, 299.78°)
OKLaboklab(43.88% 0.0042 -0.195)
OKLCHoklch(43.88% 0.195 271.2)
XYZxyz(11.9020, 7.5771, 47.8393)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DBB #BBAF31
analogous
#3182BB #313DBB #6A31BB
triadic
#313DBB #BB313D #3DBB31
tetradic
#313DBB #BB3182 #BBAF31 #31BB6A
square
#313DBB #BB3182 #BBAF31 #31BB6A
split-complementary
#313DBB #BB6A31 #82BB31
monochromatic
#181D5A #242D8B #313DBB #5661D3 #878FE0

Accessibility & contrast

On white

8.35
#313DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#313DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DBB
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DBB#FFFFFF#000000##FFFFFF
##313DBB1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#005F77
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #313dbb;
/* rgb */ color: rgb(49, 61, 187);
/* oklch */ color: oklch(43.9% 0.195 271.2);
Tailwind
colors: {
  custom: {
    50: '#7e73d1',
    500: '#313dbb',
    950: '#000000',
  },
}
SCSS
$custom: #313dbb;
$custom-light: #7e73d1;
$custom-dark: #000000;
JSON
{
  "hex": "#313dbb",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 187
  },
  "hsl": {
    "h": 234.783,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.43884,
    "c": 0.19503,
    "h": 271.2
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#313DBB
secondary
#C9C37F
accent
#D446E2
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #313DBB

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

Preview Lab → · Contrast checker → · Palette generator →

#313DBB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva