#312F7E#312F7E

#312F7E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.130 H 278.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#312F7E
RGBrgb(49, 47, 126)
HSLhsl(242, 46%, 34%)
HSVhsv(242, 63%, 49%)
CMYKcmyk(61.1%, 62.7%, 0%, 50.6%)
CIE-LABlab(24.30, 25.92, -44.64)
CIE-LCHlch(24.30, 51.62, 300.15°)
OKLaboklab(35.8% 0.0197 -0.1283)
OKLCHoklch(35.8% 0.13 278.7)
XYZxyz(6.0478, 4.1919, 20.2250)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F7E #7C7E2F
analogous
#2F557E #312F7E #592F7E
triadic
#312F7E #7E312F #2F7E31
tetradic
#312F7E #7E2F55 #7C7E2F #2F7E59
square
#312F7E #7E2F55 #7C7E2F #2F7E59
split-complementary
#312F7E #7E592F #557E2F
monochromatic
#0E0E25 #201E51 #312F7E #4240AB #6563C5

Accessibility & contrast

On white

11.42
#312F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#312F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F7E
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F7E#FFFFFF#000000##FFFFFF
##312F7E1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312f7e;
/* rgb */ color: rgb(49, 47, 126);
/* oklch */ color: oklch(35.8% 0.130 278.7);
Tailwind
colors: {
  custom: {
    50: '#7267a4',
    500: '#312f7e',
    950: '#000000',
  },
}
SCSS
$custom: #312f7e;
$custom-light: #7267a4;
$custom-dark: #000000;
JSON
{
  "hex": "#312f7e",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 241.519,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35797,
    "c": 0.12979,
    "h": 278.7
  },
  "luminance": 0.04192
}

Semantic roles & 50–950 ramp

primary
#312F7E
secondary
#AAAC5D
accent
#D552D2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #312F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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