#313AAC#313AAC

#313AAC is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.0% C 0.179 H 272.4°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#313AAC
RGBrgb(49, 58, 172)
HSLhsl(236, 56%, 43%)
HSVhsv(236, 72%, 67%)
CMYKcmyk(71.5%, 66.3%, 0%, 32.5%)
CIE-LABlab(31.01, 35.15, -61.91)
CIE-LCHlch(31.01, 71.19, 299.59°)
OKLaboklab(41.96% 0.0074 -0.1789)
OKLCHoklch(41.96% 0.179 272.4)
XYZxyz(10.2236, 6.6566, 39.7678)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AAC #ACA331
analogous
#3177AC #313AAC #6531AC
triadic
#313AAC #AC313A #3AAC31
tetradic
#313AAC #AC3177 #ACA331 #31AC65
square
#313AAC #AC3177 #ACA331 #31AC65
split-complementary
#313AAC #AC6531 #77AC31
monochromatic
#161A4D #232A7C #313AAC #4E57CC #7D84DA

Accessibility & contrast

On white

9.01
#313AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#313AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AAC
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AAC#FFFFFF#000000##FFFFFF
##313AAC1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0043AA
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313aac;
/* rgb */ color: rgb(49, 58, 172);
/* oklch */ color: oklch(42.0% 0.179 272.4);
Tailwind
colors: {
  custom: {
    50: '#7b70c6',
    500: '#313aac',
    950: '#000000',
  },
}
SCSS
$custom: #313aac;
$custom-light: #7b70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#313aac",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 172
  },
  "hsl": {
    "h": 235.61,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41956,
    "c": 0.17904,
    "h": 272.4
  },
  "luminance": 0.06658
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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