#312EAE#312EAE

#312EAE is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.195 H 274.2°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#312EAE
RGBrgb(49, 46, 174)
HSLhsl(241, 58%, 43%)
HSVhsv(241, 74%, 68%)
CMYKcmyk(71.8%, 73.6%, 0%, 31.8%)
CIE-LABlab(28.54, 43.11, -67.16)
CIE-LCHlch(28.54, 79.81, 302.69°)
OKLaboklab(40.24% 0.0144 -0.1942)
OKLCHoklch(40.24% 0.195 274.2)
XYZxyz(9.8811, 5.6620, 40.6083)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EAE #ABAE2E
analogous
#2E6BAE #312EAE #712EAE
triadic
#312EAE #AE312E #2EAE31
tetradic
#312EAE #AE2E6B #ABAE2E #2EAE71
square
#312EAE #AE2E6B #ABAE2E #2EAE71
split-complementary
#312EAE #AE712E #6BAE2E
monochromatic
#16144D #23217E #312EAE #4D4ACF #7D7ADC

Accessibility & contrast

On white

9.85
#312EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#312EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EAE
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EAE#FFFFFF#000000##FFFFFF
##312EAE1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#003DAC
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #312eae;
/* rgb */ color: rgb(49, 46, 174);
/* oklch */ color: oklch(40.2% 0.195 274.2);
Tailwind
colors: {
  custom: {
    50: '#7c68c7',
    500: '#312eae',
    950: '#000000',
  },
}
SCSS
$custom: #312eae;
$custom-light: #7c68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#312eae",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 174
  },
  "hsl": {
    "h": 241.406,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40235,
    "c": 0.19478,
    "h": 274.2
  },
  "luminance": 0.05663
}

Semantic roles & 50–950 ramp

primary
#312EAE
secondary
#C2C474
accent
#E146DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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