#312A67#312A67

#312A67 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.9% C 0.103 H 284.4°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#312A67
RGBrgb(49, 42, 103)
HSLhsl(247, 42%, 28%)
HSVhsv(247, 59%, 40%)
CMYKcmyk(52.4%, 59.2%, 0%, 59.6%)
CIE-LABlab(21.16, 21.26, -34.97)
CIE-LCHlch(21.16, 40.93, 301.30°)
OKLaboklab(32.91% 0.0257 -0.0999)
OKLCHoklch(32.91% 0.103 284.4)
XYZxyz(4.5420, 3.2879, 13.2246)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312A67 #60672A
analogous
#2A4167 #312A67 #4F2A67
triadic
#312A67 #67312A #2A6731
tetradic
#312A67 #672A41 #60672A #2A674F
square
#312A67 #672A41 #60672A #2A674F
split-complementary
#312A67 #674F2A #41672A
monochromatic
#0A0916 #1C183C #312A67 #463C92 #5E53B9

Accessibility & contrast

On white

12.67
#312A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#312A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312A67
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312A67#FFFFFF#000000##FFFFFF
##312A671.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043569
Deuteranopia (green-blind)
#013166
Tritanopia (blue-blind)
#1D3844
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #312a67;
/* rgb */ color: rgb(49, 42, 103);
/* oklch */ color: oklch(32.9% 0.103 284.4);
Tailwind
colors: {
  custom: {
    50: '#6e6393',
    500: '#312a67',
    950: '#000000',
  },
}
SCSS
$custom: #312a67;
$custom-light: #6e6393;
$custom-dark: #000000;
JSON
{
  "hex": "#312a67",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 103
  },
  "hsl": {
    "h": 246.885,
    "s": 42.069,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32906,
    "c": 0.10314,
    "h": 284.4
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#312A67
secondary
#919954
accent
#D256C4
background
#F6F5F9
surface
#ECEAF1
border
#C7C6CB
text
#07050D
muted
#7A797E

Preview Lab

Preview with #312A67

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

Preview Lab → · Contrast checker → · Palette generator →

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