#312FA7#312FA7

#312FA7 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.185 H 274.7°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#312FA7
RGBrgb(49, 47, 167)
HSLhsl(241, 56%, 42%)
HSVhsv(241, 72%, 65%)
CMYKcmyk(70.7%, 71.9%, 0%, 34.5%)
CIE-LABlab(28.05, 40.18, -63.77)
CIE-LCHlch(28.05, 75.37, 302.21°)
OKLaboklab(39.67% 0.0151 -0.1844)
OKLCHoklch(39.67% 0.185 274.7)
XYZxyz(9.2559, 5.4751, 37.1207)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FA7 #A5A72F
analogous
#2F69A7 #312FA7 #6D2FA7
triadic
#312FA7 #A7312F #2FA731
tetradic
#312FA7 #A72F69 #A5A72F #2FA76D
square
#312FA7 #A72F69 #A5A72F #2FA76D
split-complementary
#312FA7 #A76D2F #69A72F
monochromatic
#151447 #232277 #312FA7 #4A48CB #7978D9

Accessibility & contrast

On white

10.02
#312FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#312FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FA7
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FA7#FFFFFF#000000##FFFFFF
##312FA71.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003DA5
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #312fa7;
/* rgb */ color: rgb(49, 47, 167);
/* oklch */ color: oklch(39.7% 0.185 274.7);
Tailwind
colors: {
  custom: {
    50: '#7a69c2',
    500: '#312fa7',
    950: '#000000',
  },
}
SCSS
$custom: #312fa7;
$custom-light: #7a69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#312fa7",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 241,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.3967,
    "c": 0.18496,
    "h": 274.7
  },
  "luminance": 0.05476
}

Semantic roles & 50–950 ramp

primary
#312FA7
secondary
#C0C171
accent
#DF48DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312FA7

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

Preview Lab → · Contrast checker → · Palette generator →

#312FA7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva