#312FC0#312FC0

#312FC0 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.3% C 0.216 H 272.8°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#312FC0
RGBrgb(49, 47, 192)
HSLhsl(241, 61%, 47%)
HSVhsv(241, 76%, 75%)
CMYKcmyk(74.5%, 75.5%, 0%, 24.7%)
CIE-LABlab(30.62, 48.45, -74.43)
CIE-LCHlch(30.62, 88.81, 303.06°)
OKLaboklab(42.26% 0.0106 -0.2154)
OKLCHoklch(42.26% 0.216 272.8)
XYZxyz(11.7944, 6.4905, 50.4902)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FC0 #BEC02F
analogous
#2F75C0 #312FC0 #7A2FC0
triadic
#312FC0 #C0312F #2FC031
tetradic
#312FC0 #C02F75 #BEC02F #2FC07A
square
#312FC0 #C02F75 #BEC02F #2FC07A
split-complementary
#312FC0 #C07A2F #75C02F
monochromatic
#18175E #24238F #312FC0 #5856D6 #8988E2

Accessibility & contrast

On white

9.14
#312FC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#312FC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FC0
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FC0#FFFFFF#000000##FFFFFF
##312FC01.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC4
Deuteranopia (green-blind)
#0041BD
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #312fc0;
/* rgb */ color: rgb(49, 47, 192);
/* oklch */ color: oklch(42.3% 0.216 272.8);
Tailwind
colors: {
  custom: {
    50: '#806ad4',
    500: '#312fc0',
    950: '#000000',
  },
}
SCSS
$custom: #312fc0;
$custom-light: #806ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#312fc0",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 192
  },
  "hsl": {
    "h": 240.828,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.42264,
    "c": 0.21565,
    "h": 272.8
  },
  "luminance": 0.06492
}

Semantic roles & 50–950 ramp

primary
#312FC0
secondary
#CACB7F
accent
#E444E2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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