#313AAB#313AAB

#313AAB is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.178 H 272.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#313AAB
RGBrgb(49, 58, 171)
HSLhsl(236, 55%, 43%)
HSVhsv(236, 71%, 67%)
CMYKcmyk(71.3%, 66.1%, 0%, 32.9%)
CIE-LABlab(30.92, 34.80, -61.46)
CIE-LCHlch(30.92, 70.62, 299.52°)
OKLaboklab(41.86% 0.0075 -0.1776)
OKLCHoklch(41.86% 0.178 272.4)
XYZxyz(10.1279, 6.6184, 39.2639)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AAB #ABA231
analogous
#3177AB #313AAB #6531AB
triadic
#313AAB #AB313A #3AAB31
tetradic
#313AAB #AB3177 #ABA231 #31AB65
square
#313AAB #AB3177 #ABA231 #31AB65
split-complementary
#313AAB #AB6531 #77AB31
monochromatic
#161A4C #232A7B #313AAB #4D57CC #7D84DA

Accessibility & contrast

On white

9.04
#313AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#313AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AAB
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AAB#FFFFFF#000000##FFFFFF
##313AAB1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313aab;
/* rgb */ color: rgb(49, 58, 171);
/* oklch */ color: oklch(41.9% 0.178 272.4);
Tailwind
colors: {
  custom: {
    50: '#7a70c5',
    500: '#313aab',
    950: '#000000',
  },
}
SCSS
$custom: #313aab;
$custom-light: #7a70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#313aab",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 171
  },
  "hsl": {
    "h": 235.574,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41862,
    "c": 0.17773,
    "h": 272.4
  },
  "luminance": 0.06619
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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