#313A9C#313A9C

#313A9C is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.158 H 273.1°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#313A9C
RGBrgb(49, 58, 156)
HSLhsl(235, 52%, 40%)
HSVhsv(235, 69%, 61%)
CMYKcmyk(68.6%, 62.8%, 0%, 38.8%)
CIE-LABlab(29.61, 29.42, -54.55)
CIE-LCHlch(29.61, 61.98, 298.34°)
OKLaboklab(40.49% 0.0084 -0.1573)
OKLCHoklch(40.49% 0.158 273.1)
XYZxyz(8.7784, 6.0786, 32.1567)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A9C #9C9331
analogous
#31709C #313A9C #5D319C
triadic
#313A9C #9C313A #3A9C31
tetradic
#313A9C #9C3170 #9C9331 #319C5D
square
#313A9C #9C3170 #9C9331 #319C5D
split-complementary
#313A9C #9C5D31 #709C31
monochromatic
#14173F #22296D #313A9C #4550C5 #747CD3

Accessibility & contrast

On white

9.48
#313A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#313A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A9C
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A9C#FFFFFF#000000##FFFFFF
##313A9C1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313a9c;
/* rgb */ color: rgb(49, 58, 156);
/* oklch */ color: oklch(40.5% 0.158 273.1);
Tailwind
colors: {
  custom: {
    50: '#7770ba',
    500: '#313a9c',
    950: '#000000',
  },
}
SCSS
$custom: #313a9c;
$custom-light: #7770ba;
$custom-dark: #000000;
JSON
{
  "hex": "#313a9c",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 156
  },
  "hsl": {
    "h": 234.953,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40495,
    "c": 0.15755,
    "h": 273.1
  },
  "luminance": 0.06079
}

Semantic roles & 50–950 ramp

primary
#313A9C
secondary
#BBB56D
accent
#D04CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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