#3122A8#3122A8

#3122A8 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 38.0% C 0.199 H 276.3°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#3122A8
RGBrgb(49, 34, 168)
HSLhsl(247, 66%, 40%)
HSVhsv(247, 80%, 66%)
CMYKcmyk(70.8%, 79.8%, 0%, 34.1%)
CIE-LABlab(25.63, 47.63, -68.36)
CIE-LCHlch(25.63, 83.32, 304.87°)
OKLaboklab(38% 0.0217 -0.1976)
OKLCHoklch(38% 0.199 276.3)
XYZxyz(8.9042, 4.6233, 37.4613)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3122A8 #99A822
analogous
#2256A8 #3122A8 #7422A8
triadic
#3122A8 #A83122 #22A831
tetradic
#3122A8 #A82256 #99A822 #22A874
square
#3122A8 #A82256 #99A822 #22A874
split-complementary
#3122A8 #A87422 #56A822
monochromatic
#130D42 #221875 #3122A8 #4432D5 #7265E0

Accessibility & contrast

On white

10.91
#3122A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3122A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3122A8
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3122A8#FFFFFF#000000##FFFFFF
##3122A81.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3122a8;
/* rgb */ color: rgb(49, 34, 168);
/* oklch */ color: oklch(38.0% 0.199 276.3);
Tailwind
colors: {
  custom: {
    50: '#7c61c3',
    500: '#3122a8',
    950: '#000000',
  },
}
SCSS
$custom: #3122a8;
$custom-light: #7c61c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3122a8",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 246.716,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37996,
    "c": 0.19878,
    "h": 276.3
  },
  "luminance": 0.04624
}

Semantic roles & 50–950 ramp

primary
#3122A8
secondary
#BAC561
accent
#E93FD6
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #3122A8

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

Preview Lab → · Contrast checker → · Palette generator →

#3122A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva