#313BA1#313BA1

#313BA1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.1% C 0.163 H 272.6°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#313BA1
RGBrgb(49, 59, 161)
HSLhsl(235, 53%, 41%)
HSVhsv(235, 70%, 63%)
CMYKcmyk(69.6%, 63.4%, 0%, 36.9%)
CIE-LABlab(30.29, 30.57, -56.48)
CIE-LCHlch(30.29, 64.22, 298.43°)
OKLaboklab(41.13% 0.0074 -0.163)
OKLCHoklch(41.13% 0.163 272.6)
XYZxyz(9.2615, 6.3532, 34.4495)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BA1 #A19731
analogous
#3173A1 #313BA1 #5F31A1
triadic
#313BA1 #A1313B #3BA131
tetradic
#313BA1 #A13173 #A19731 #31A15F
square
#313BA1 #A13173 #A19731 #31A15F
split-complementary
#313BA1 #A15F31 #73A131
monochromatic
#141943 #232A72 #313BA1 #4853C7 #777FD6

Accessibility & contrast

On white

9.25
#313BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#313BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BA1
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BA1#FFFFFF#000000##FFFFFF
##313BA11.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313ba1;
/* rgb */ color: rgb(49, 59, 161);
/* oklch */ color: oklch(41.1% 0.163 272.6);
Tailwind
colors: {
  custom: {
    50: '#7871be',
    500: '#313ba1',
    950: '#000000',
  },
}
SCSS
$custom: #313ba1;
$custom-light: #7871be;
$custom-dark: #000000;
JSON
{
  "hex": "#313ba1",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 161
  },
  "hsl": {
    "h": 234.643,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41126,
    "c": 0.16314,
    "h": 272.6
  },
  "luminance": 0.06354
}

Semantic roles & 50–950 ramp

primary
#313BA1
secondary
#BEB770
accent
#D04BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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