#312FA1#312FA1

#312FA1 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.177 H 275.2°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#312FA1
RGBrgb(49, 47, 161)
HSLhsl(241, 55%, 41%)
HSVhsv(241, 71%, 63%)
CMYKcmyk(69.6%, 70.8%, 0%, 36.9%)
CIE-LABlab(27.46, 38.13, -61.11)
CIE-LCHlch(27.46, 72.03, 301.96°)
OKLaboklab(39.07% 0.016 -0.1766)
OKLCHoklch(39.07% 0.177 275.2)
XYZxyz(8.7140, 5.2584, 34.2670)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FA1 #9FA12F
analogous
#2F66A1 #312FA1 #6A2FA1
triadic
#312FA1 #A1312F #2FA131
tetradic
#312FA1 #A12F66 #9FA12F #2FA16A
square
#312FA1 #A12F66 #9FA12F #2FA16A
split-complementary
#312FA1 #A16A2F #66A12F
monochromatic
#141342 #232172 #312FA1 #4745C9 #7674D6

Accessibility & contrast

On white

10.23
#312FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#312FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FA1
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FA1#FFFFFF#000000##FFFFFF
##312FA11.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312fa1;
/* rgb */ color: rgb(49, 47, 161);
/* oklch */ color: oklch(39.1% 0.177 275.2);
Tailwind
colors: {
  custom: {
    50: '#7968be',
    500: '#312fa1',
    950: '#000000',
  },
}
SCSS
$custom: #312fa1;
$custom-light: #7968be;
$custom-dark: #000000;
JSON
{
  "hex": "#312fa1",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 241.053,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39069,
    "c": 0.1773,
    "h": 275.2
  },
  "luminance": 0.05259
}

Semantic roles & 50–950 ramp

primary
#312FA1
secondary
#BDBE6E
accent
#DE4ADC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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