#312ECF#312ECF

#312ECF is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.8% C 0.234 H 272.0°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#312ECF
RGBrgb(49, 46, 207)
HSLhsl(241, 64%, 50%)
HSVhsv(241, 78%, 81%)
CMYKcmyk(76.3%, 77.8%, 0%, 18.8%)
CIE-LABlab(32.06, 53.75, -80.82)
CIE-LCHlch(32.06, 97.06, 303.63°)
OKLaboklab(43.75% 0.008 -0.2339)
OKLCHoklch(43.75% 0.234 272)
XYZxyz(13.5023, 7.1105, 59.6802)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312ECF #CCCF2E
analogous
#2E7CCF #312ECF #822ECF
triadic
#312ECF #CF312E #2ECF31
tetradic
#312ECF #CF2E7C #CCCF2E #2ECF82
square
#312ECF #CF2E7C #CCCF2E #2ECF82
split-complementary
#312ECF #CF822E #7CCF2E
monochromatic
#19186B #25239D #312ECF #615FDB #9291E7

Accessibility & contrast

On white

8.67
#312ECF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#312ECF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312ECF
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312ECF#FFFFFF#000000##FFFFFF
##312ECF1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053D4
Deuteranopia (green-blind)
#0043CC
Tritanopia (blue-blind)
#005F7E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #312ecf;
/* rgb */ color: rgb(49, 46, 207);
/* oklch */ color: oklch(43.8% 0.234 272.0);
Tailwind
colors: {
  custom: {
    50: '#846adf',
    500: '#312ecf',
    950: '#000000',
  },
}
SCSS
$custom: #312ecf;
$custom-light: #846adf;
$custom-dark: #000000;
JSON
{
  "hex": "#312ecf",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 207
  },
  "hsl": {
    "h": 241.118,
    "s": 63.636,
    "l": 49.608
  },
  "oklch": {
    "l": 0.43753,
    "c": 0.23408,
    "h": 272
  },
  "luminance": 0.07112
}

Semantic roles & 50–950 ramp

primary
#312ECF
secondary
#D0D188
accent
#E741E4
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #312ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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