#312698#312698

#312698 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.176 H 277.7°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#312698
RGBrgb(49, 38, 152)
HSLhsl(246, 60%, 37%)
HSVhsv(246, 75%, 60%)
CMYKcmyk(67.8%, 75%, 0%, 40.4%)
CIE-LABlab(24.66, 40.40, -60.23)
CIE-LCHlch(24.66, 72.53, 303.85°)
OKLaboklab(36.8% 0.0234 -0.174)
OKLCHoklch(36.8% 0.176 277.7)
XYZxyz(7.6254, 4.3055, 30.1289)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312698 #8D9826
analogous
#265498 #312698 #6A2698
triadic
#312698 #983126 #269831
tetradic
#312698 #982654 #8D9826 #26986A
square
#312698 #982654 #8D9826 #26986A
split-complementary
#312698 #986A26 #549826
monochromatic
#110E36 #211A67 #312698 #4132C9 #6C61D7

Accessibility & contrast

On white

11.28
#312698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#312698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312698
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312698#FFFFFF#000000##FFFFFF
##3126981.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312698;
/* rgb */ color: rgb(49, 38, 152);
/* oklch */ color: oklch(36.8% 0.176 277.7);
Tailwind
colors: {
  custom: {
    50: '#7862b7',
    500: '#312698',
    950: '#000000',
  },
}
SCSS
$custom: #312698;
$custom-light: #7862b7;
$custom-dark: #000000;
JSON
{
  "hex": "#312698",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 245.789,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36799,
    "c": 0.17554,
    "h": 277.7
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312698

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

Preview Lab → · Contrast checker → · Palette generator →

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