#312697#312697

#312697 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.174 H 277.8°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#312697
RGBrgb(49, 38, 151)
HSLhsl(246, 60%, 37%)
HSVhsv(246, 75%, 59%)
CMYKcmyk(67.5%, 74.8%, 0%, 40.8%)
CIE-LABlab(24.55, 40.07, -59.79)
CIE-LCHlch(24.55, 71.97, 303.83°)
OKLaboklab(36.7% 0.0236 -0.1727)
OKLCHoklch(36.7% 0.174 277.8)
XYZxyz(7.5438, 4.2729, 29.6994)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312697 #8C9726
analogous
#265397 #312697 #6A2697
triadic
#312697 #973126 #269731
tetradic
#312697 #972653 #8C9726 #26976A
square
#312697 #972653 #8C9726 #26976A
split-complementary
#312697 #976A26 #539726
monochromatic
#110D35 #211A66 #312697 #4132C8 #6C60D7

Accessibility & contrast

On white

11.32
#312697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#312697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312697
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312697#FFFFFF#000000##FFFFFF
##3126971.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312697;
/* rgb */ color: rgb(49, 38, 151);
/* oklch */ color: oklch(36.7% 0.174 277.8);
Tailwind
colors: {
  custom: {
    50: '#7862b7',
    500: '#312697',
    950: '#000000',
  },
}
SCSS
$custom: #312697;
$custom-light: #7862b7;
$custom-dark: #000000;
JSON
{
  "hex": "#312697",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 245.841,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36695,
    "c": 0.17428,
    "h": 277.8
  },
  "luminance": 0.04274
}

Semantic roles & 50–950 ramp

primary
#312697
secondary
#B3BC5C
accent
#E345D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312697

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

Preview Lab → · Contrast checker → · Palette generator →

#312697 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva