#312395#312395

#312395 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.175 H 278.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#312395
RGBrgb(49, 35, 149)
HSLhsl(247, 62%, 36%)
HSVhsv(247, 77%, 58%)
CMYKcmyk(67.1%, 76.5%, 0%, 41.6%)
CIE-LABlab(23.75, 41.10, -59.88)
CIE-LCHlch(23.75, 72.63, 304.47°)
OKLaboklab(36.07% 0.026 -0.1729)
OKLCHoklch(36.07% 0.175 278.5)
XYZxyz(7.2907, 4.0243, 28.8205)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312395 #879523
analogous
#234E95 #312395 #6A2395
triadic
#312395 #953123 #239531
tetradic
#312395 #95234E #879523 #23956A
square
#312395 #95234E #879523 #23956A
split-complementary
#312395 #956A23 #4E9523
monochromatic
#100C32 #211763 #312395 #412FC7 #6A5AD8

Accessibility & contrast

On white

11.63
#312395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#312395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312395
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312395#FFFFFF#000000##FFFFFF
##3123951.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312395;
/* rgb */ color: rgb(49, 35, 149);
/* oklch */ color: oklch(36.1% 0.175 278.5);
Tailwind
colors: {
  custom: {
    50: '#7860b5',
    500: '#312395',
    950: '#000000',
  },
}
SCSS
$custom: #312395;
$custom-light: #7860b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312395",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 149
  },
  "hsl": {
    "h": 247.368,
    "s": 61.957,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36066,
    "c": 0.17485,
    "h": 278.5
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#312395
secondary
#B0BD57
accent
#E543D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312395

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

Preview Lab → · Contrast checker → · Palette generator →

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