#313AA2#313AA2

#313AA2 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.166 H 272.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#313AA2
RGBrgb(49, 58, 162)
HSLhsl(235, 54%, 41%)
HSVhsv(235, 70%, 64%)
CMYKcmyk(69.8%, 64.2%, 0%, 36.5%)
CIE-LABlab(30.12, 31.58, -57.35)
CIE-LCHlch(30.12, 65.47, 298.84°)
OKLaboklab(41.03% 0.0081 -0.1655)
OKLCHoklch(41.03% 0.166 272.8)
XYZxyz(9.2991, 6.2868, 34.8988)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AA2 #A29931
analogous
#3173A2 #313AA2 #6131A2
triadic
#313AA2 #A2313A #3AA231
tetradic
#313AA2 #A23173 #A29931 #31A261
square
#313AA2 #A23173 #A29931 #31A261
split-complementary
#313AA2 #A26131 #73A231
monochromatic
#151844 #232973 #313AA2 #4853C8 #777FD6

Accessibility & contrast

On white

9.30
#313AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#313AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AA2
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AA2#FFFFFF#000000##FFFFFF
##313AA21.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313aa2;
/* rgb */ color: rgb(49, 58, 162);
/* oklch */ color: oklch(41.0% 0.166 272.8);
Tailwind
colors: {
  custom: {
    50: '#7870be',
    500: '#313aa2',
    950: '#000000',
  },
}
SCSS
$custom: #313aa2;
$custom-light: #7870be;
$custom-dark: #000000;
JSON
{
  "hex": "#313aa2",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 235.221,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41034,
    "c": 0.16572,
    "h": 272.8
  },
  "luminance": 0.06288
}

Semantic roles & 50–950 ramp

primary
#313AA2
secondary
#BEB871
accent
#D14BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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