#312BAF#312BAF

#312BAF is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.9% C 0.199 H 274.5°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#312BAF
RGBrgb(49, 43, 175)
HSLhsl(243, 61%, 43%)
HSVhsv(243, 75%, 69%)
CMYKcmyk(72%, 75.4%, 0%, 31.4%)
CIE-LABlab(28.05, 45.12, -68.58)
CIE-LCHlch(28.05, 82.09, 303.34°)
OKLaboklab(39.91% 0.0158 -0.1983)
OKLCHoklch(39.91% 0.199 274.5)
XYZxyz(9.8658, 5.4749, 41.0860)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BAF #A9AF2B
analogous
#2B67AF #312BAF #732BAF
triadic
#312BAF #AF312B #2BAF31
tetradic
#312BAF #AF2B67 #A9AF2B #2BAF73
square
#312BAF #AF2B67 #A9AF2B #2BAF73
split-complementary
#312BAF #AF732B #67AF2B
monochromatic
#15134D #231F7E #312BAF #4C46D1 #7C77DE

Accessibility & contrast

On white

10.02
#312BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#312BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BAF
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BAF#FFFFFF#000000##FFFFFF
##312BAF1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00526B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #312baf;
/* rgb */ color: rgb(49, 43, 175);
/* oklch */ color: oklch(39.9% 0.199 274.5);
Tailwind
colors: {
  custom: {
    50: '#7d66c8',
    500: '#312baf',
    950: '#000000',
  },
}
SCSS
$custom: #312baf;
$custom-light: #7d66c8;
$custom-dark: #000000;
JSON
{
  "hex": "#312baf",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 242.727,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39914,
    "c": 0.19897,
    "h": 274.5
  },
  "luminance": 0.05476
}

Semantic roles & 50–950 ramp

primary
#312BAF
secondary
#C1C570
accent
#E444DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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