#312EBD#312EBD

#312EBD is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.8% C 0.213 H 273.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#312EBD
RGBrgb(49, 46, 189)
HSLhsl(241, 61%, 46%)
HSVhsv(241, 76%, 74%)
CMYKcmyk(74.1%, 75.7%, 0%, 25.9%)
CIE-LABlab(30.11, 48.03, -73.50)
CIE-LCHlch(30.11, 87.80, 303.16°)
OKLaboklab(41.81% 0.0116 -0.2127)
OKLCHoklch(41.81% 0.213 273.1)
XYZxyz(11.4259, 6.2799, 48.7442)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EBD #BABD2E
analogous
#2E72BD #312EBD #782EBD
triadic
#312EBD #BD312E #2EBD31
tetradic
#312EBD #BD2E72 #BABD2E #2EBD78
square
#312EBD #BD2E72 #BABD2E #2EBD78
split-complementary
#312EBD #BD782E #72BD2E
monochromatic
#17165B #24228C #312EBD #5653D5 #8684E1

Accessibility & contrast

On white

9.31
#312EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#312EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EBD
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EBD#FFFFFF#000000##FFFFFF
##312EBD1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0040BA
Tritanopia (blue-blind)
#005874
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #312ebd;
/* rgb */ color: rgb(49, 46, 189);
/* oklch */ color: oklch(41.8% 0.213 273.1);
Tailwind
colors: {
  custom: {
    50: '#8069d2',
    500: '#312ebd',
    950: '#000000',
  },
}
SCSS
$custom: #312ebd;
$custom-light: #8069d2;
$custom-dark: #000000;
JSON
{
  "hex": "#312ebd",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 241.259,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.41809,
    "c": 0.213,
    "h": 273.1
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#312EBD
secondary
#C9CA7C
accent
#E444E1
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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