#312FC9#312FC9

#312FC9 is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.2% C 0.226 H 272.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#312FC9
RGBrgb(49, 47, 201)
HSLhsl(241, 62%, 49%)
HSVhsv(241, 77%, 79%)
CMYKcmyk(75.6%, 76.6%, 0%, 21.2%)
CIE-LABlab(31.58, 51.34, -78.11)
CIE-LCHlch(31.58, 93.47, 303.32°)
OKLaboklab(43.23% 0.0088 -0.2261)
OKLCHoklch(43.23% 0.226 272.2)
XYZxyz(12.8222, 6.9017, 55.9034)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FC9 #C7C92F
analogous
#2F7AC9 #312FC9 #7E2FC9
triadic
#312FC9 #C9312F #2FC931
tetradic
#312FC9 #C92F7A #C7C92F #2FC97E
square
#312FC9 #C92F7A #C7C92F #2FC97E
split-complementary
#312FC9 #C97E2F #7AC92F
monochromatic
#191866 #252397 #312FC9 #5E5CD9 #8F8EE5

Accessibility & contrast

On white

8.82
#312FC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#312FC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FC9
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FC9#FFFFFF#000000##FFFFFF
##312FC91.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CD
Deuteranopia (green-blind)
#0043C6
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #312fc9;
/* rgb */ color: rgb(49, 47, 201);
/* oklch */ color: oklch(43.2% 0.226 272.2);
Tailwind
colors: {
  custom: {
    50: '#826adb',
    500: '#312fc9',
    950: '#000000',
  },
}
SCSS
$custom: #312fc9;
$custom-light: #826adb;
$custom-dark: #000000;
JSON
{
  "hex": "#312fc9",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 240.779,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.43228,
    "c": 0.22626,
    "h": 272.2
  },
  "luminance": 0.06903
}

Semantic roles & 50–950 ramp

primary
#312FC9
secondary
#CECF85
accent
#E543E3
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #312FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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