#313BAC#313BAC

#313BAC is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.178 H 272.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#313BAC
RGBrgb(49, 59, 172)
HSLhsl(235, 56%, 43%)
HSVhsv(235, 72%, 67%)
CMYKcmyk(71.5%, 65.7%, 0%, 32.5%)
CIE-LABlab(31.25, 34.52, -61.52)
CIE-LCHlch(31.25, 70.54, 299.30°)
OKLaboklab(42.13% 0.0068 -0.1777)
OKLCHoklch(42.13% 0.178 272.2)
XYZxyz(10.2745, 6.7584, 39.7848)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BAC #ACA231
analogous
#3178AC #313BAC #6431AC
triadic
#313BAC #AC313B #3BAC31
tetradic
#313BAC #AC3178 #ACA231 #31AC64
square
#313BAC #AC3178 #ACA231 #31AC64
split-complementary
#313BAC #AC6431 #78AC31
monochromatic
#161A4D #232B7C #313BAC #4E58CC #7D85DA

Accessibility & contrast

On white

8.93
#313BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#313BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BAC
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BAC#FFFFFF#000000##FFFFFF
##313BAC1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313bac;
/* rgb */ color: rgb(49, 59, 172);
/* oklch */ color: oklch(42.1% 0.178 272.2);
Tailwind
colors: {
  custom: {
    50: '#7b71c6',
    500: '#313bac',
    950: '#000000',
  },
}
SCSS
$custom: #313bac;
$custom-light: #7b71c6;
$custom-dark: #000000;
JSON
{
  "hex": "#313bac",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 172
  },
  "hsl": {
    "h": 235.122,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4213,
    "c": 0.17787,
    "h": 272.2
  },
  "luminance": 0.06759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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