#312FA8#312FA8

#312FA8 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.186 H 274.6°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#312FA8
RGBrgb(49, 47, 168)
HSLhsl(241, 56%, 42%)
HSVhsv(241, 72%, 66%)
CMYKcmyk(70.8%, 72%, 0%, 34.1%)
CIE-LABlab(28.15, 40.51, -64.21)
CIE-LCHlch(28.15, 75.92, 302.25°)
OKLaboklab(39.77% 0.0149 -0.1856)
OKLCHoklch(39.77% 0.186 274.6)
XYZxyz(9.3487, 5.5123, 37.6095)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FA8 #A6A82F
analogous
#2F69A8 #312FA8 #6E2FA8
triadic
#312FA8 #A8312F #2FA831
tetradic
#312FA8 #A82F69 #A6A82F #2FA86E
square
#312FA8 #A82F69 #A6A82F #2FA86E
split-complementary
#312FA8 #A86E2F #69A82F
monochromatic
#151448 #232278 #312FA8 #4A48CC #7A78D9

Accessibility & contrast

On white

9.99
#312FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312FA8
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FA8#FFFFFF#000000##FFFFFF
##312FA81.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003DA6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #312fa8;
/* rgb */ color: rgb(49, 47, 168);
/* oklch */ color: oklch(39.8% 0.186 274.6);
Tailwind
colors: {
  custom: {
    50: '#7b69c3',
    500: '#312fa8',
    950: '#000000',
  },
}
SCSS
$custom: #312fa8;
$custom-light: #7b69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#312fa8",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 240.992,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39771,
    "c": 0.18623,
    "h": 274.6
  },
  "luminance": 0.05513
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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