#312E7E#312E7E

#312E7E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.131 H 279.1°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#312E7E
RGBrgb(49, 46, 126)
HSLhsl(242, 47%, 34%)
HSVhsv(242, 63%, 49%)
CMYKcmyk(61.1%, 63.5%, 0%, 50.6%)
CIE-LABlab(24.04, 26.59, -45.05)
CIE-LCHlch(24.04, 52.31, 300.55°)
OKLaboklab(35.61% 0.0207 -0.1295)
OKLCHoklch(35.61% 0.131 279.1)
XYZxyz(6.0083, 4.1129, 20.2119)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E7E #7B7E2E
analogous
#2E537E #312E7E #592E7E
triadic
#312E7E #7E312E #2E7E31
tetradic
#312E7E #7E2E53 #7B7E2E #2E7E59
square
#312E7E #7E2E53 #7B7E2E #2E7E59
split-complementary
#312E7E #7E592E #537E2E
monochromatic
#0E0D24 #201E51 #312E7E #423EAB #6561C5

Accessibility & contrast

On white

11.52
#312E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#312E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E7E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E7E#FFFFFF#000000##FFFFFF
##312E7E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312e7e;
/* rgb */ color: rgb(49, 46, 126);
/* oklch */ color: oklch(35.6% 0.131 279.1);
Tailwind
colors: {
  custom: {
    50: '#7267a4',
    500: '#312e7e',
    950: '#000000',
  },
}
SCSS
$custom: #312e7e;
$custom-light: #7267a4;
$custom-dark: #000000;
JSON
{
  "hex": "#312e7e",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 242.25,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3561,
    "c": 0.13116,
    "h": 279.1
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

primary
#312E7E
secondary
#A9AC5C
accent
#D652D1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #312E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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