#312FAE#312FAE

#312FAE is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.4% C 0.194 H 274.1°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#312FAE
RGBrgb(49, 47, 174)
HSLhsl(241, 57%, 43%)
HSVhsv(241, 73%, 68%)
CMYKcmyk(71.8%, 73%, 0%, 31.8%)
CIE-LABlab(28.75, 42.53, -66.82)
CIE-LCHlch(28.75, 79.21, 302.48°)
OKLaboklab(40.38% 0.0139 -0.1932)
OKLCHoklch(40.38% 0.194 274.1)
XYZxyz(9.9206, 5.7410, 40.6215)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FAE #ACAE2F
analogous
#2F6CAE #312FAE #702FAE
triadic
#312FAE #AE312F #2FAE31
tetradic
#312FAE #AE2F6C #ACAE2F #2FAE70
square
#312FAE #AE2F6C #ACAE2F #2FAE70
split-complementary
#312FAE #AE702F #6CAE2F
monochromatic
#16154E #23227E #312FAE #4E4CCF #7D7CDC

Accessibility & contrast

On white

9.77
#312FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#312FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FAE
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FAE#FFFFFF#000000##FFFFFF
##312FAE1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#003EAC
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312fae;
/* rgb */ color: rgb(49, 47, 174);
/* oklch */ color: oklch(40.4% 0.194 274.1);
Tailwind
colors: {
  custom: {
    50: '#7c69c7',
    500: '#312fae',
    950: '#000000',
  },
}
SCSS
$custom: #312fae;
$custom-light: #7c69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#312fae",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 240.945,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40382,
    "c": 0.19375,
    "h": 274.1
  },
  "luminance": 0.05742
}

Semantic roles & 50–950 ramp

primary
#312FAE
secondary
#C3C475
accent
#E147DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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