#313BAD#313BAD

#313BAD is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.179 H 272.1°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#313BAD
RGBrgb(49, 59, 173)
HSLhsl(235, 56%, 44%)
HSVhsv(235, 72%, 68%)
CMYKcmyk(71.7%, 65.9%, 0%, 32.2%)
CIE-LABlab(31.34, 34.87, -61.97)
CIE-LCHlch(31.34, 71.11, 299.37°)
OKLaboklab(42.22% 0.0067 -0.1791)
OKLCHoklch(42.22% 0.179 272.1)
XYZxyz(10.3709, 6.7970, 40.2925)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BAD #ADA331
analogous
#3179AD #313BAD #6531AD
triadic
#313BAD #AD313B #3BAD31
tetradic
#313BAD #AD3179 #ADA331 #31AD65
square
#313BAD #AD3179 #ADA331 #31AD65
split-complementary
#313BAD #AD6531 #79AD31
monochromatic
#161A4E #232B7D #313BAD #4E58CD #7E85DA

Accessibility & contrast

On white

8.90
#313BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#313BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BAD
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BAD#FFFFFF#000000##FFFFFF
##313BAD1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B1
Deuteranopia (green-blind)
#0044AB
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313bad;
/* rgb */ color: rgb(49, 59, 173);
/* oklch */ color: oklch(42.2% 0.179 272.1);
Tailwind
colors: {
  custom: {
    50: '#7b71c6',
    500: '#313bad',
    950: '#000000',
  },
}
SCSS
$custom: #313bad;
$custom-light: #7b71c6;
$custom-dark: #000000;
JSON
{
  "hex": "#313bad",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 173
  },
  "hsl": {
    "h": 235.161,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42223,
    "c": 0.17918,
    "h": 272.1
  },
  "luminance": 0.06798
}

Semantic roles & 50–950 ramp

primary
#313BAD
secondary
#C3BD77
accent
#D349DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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