#313CA2#313CA2

#313CA2 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.4% C 0.163 H 272.3°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#313CA2
RGBrgb(49, 60, 162)
HSLhsl(234, 54%, 41%)
HSVhsv(234, 70%, 64%)
CMYKcmyk(69.8%, 63%, 0%, 36.5%)
CIE-LABlab(30.62, 30.28, -56.53)
CIE-LCHlch(30.62, 64.13, 298.18°)
OKLaboklab(41.4% 0.0066 -0.1631)
OKLCHoklch(41.4% 0.163 272.3)
XYZxyz(9.4019, 6.4924, 34.9331)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CA2 #A29731
analogous
#3175A2 #313CA2 #5F31A2
triadic
#313CA2 #A2313C #3CA231
tetradic
#313CA2 #A23175 #A29731 #31A25F
square
#313CA2 #A23175 #A29731 #31A25F
split-complementary
#313CA2 #A25F31 #75A231
monochromatic
#151944 #232B73 #313CA2 #4855C8 #7781D6

Accessibility & contrast

On white

9.14
#313CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#313CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CA2
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CA2#FFFFFF#000000##FFFFFF
##313CA21.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313ca2;
/* rgb */ color: rgb(49, 60, 162);
/* oklch */ color: oklch(41.4% 0.163 272.3);
Tailwind
colors: {
  custom: {
    50: '#7871be',
    500: '#313ca2',
    950: '#000000',
  },
}
SCSS
$custom: #313ca2;
$custom-light: #7871be;
$custom-dark: #000000;
JSON
{
  "hex": "#313ca2",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 162
  },
  "hsl": {
    "h": 234.159,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41399,
    "c": 0.16325,
    "h": 272.3
  },
  "luminance": 0.06493
}

Semantic roles & 50–950 ramp

primary
#313CA2
secondary
#BEB771
accent
#CF4BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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