#312EA0#312EA0

#312EA0 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.177 H 275.4°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#312EA0
RGBrgb(49, 46, 160)
HSLhsl(242, 55%, 40%)
HSVhsv(242, 71%, 63%)
CMYKcmyk(69.4%, 71.2%, 0%, 37.3%)
CIE-LABlab(27.14, 38.40, -61.03)
CIE-LCHlch(27.14, 72.10, 302.18°)
OKLaboklab(38.81% 0.0168 -0.1763)
OKLCHoklch(38.81% 0.177 275.4)
XYZxyz(8.5867, 5.1442, 33.7913)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EA0 #9DA02E
analogous
#2E64A0 #312EA0 #6A2EA0
triadic
#312EA0 #A0312E #2EA031
tetradic
#312EA0 #A02E64 #9DA02E #2EA06A
square
#312EA0 #A02E64 #9DA02E #2EA06A
split-complementary
#312EA0 #A06A2E #64A02E
monochromatic
#141341 #222070 #312EA0 #4642C9 #7572D6

Accessibility & contrast

On white

10.35
#312EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#312EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EA0
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EA0#FFFFFF#000000##FFFFFF
##312EA01.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #312ea0;
/* rgb */ color: rgb(49, 46, 160);
/* oklch */ color: oklch(38.8% 0.177 275.4);
Tailwind
colors: {
  custom: {
    50: '#7968bd',
    500: '#312ea0',
    950: '#000000',
  },
}
SCSS
$custom: #312ea0;
$custom-light: #7968bd;
$custom-dark: #000000;
JSON
{
  "hex": "#312ea0",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 241.579,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38812,
    "c": 0.17713,
    "h": 275.4
  },
  "luminance": 0.05145
}

Semantic roles & 50–950 ramp

primary
#312EA0
secondary
#BCBE6C
accent
#DF49DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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