#3122A2#3122A2

#3122A2 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.192 H 277.0°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#3122A2
RGBrgb(49, 34, 162)
HSLhsl(247, 65%, 38%)
HSVhsv(247, 79%, 64%)
CMYKcmyk(69.8%, 79%, 0%, 36.5%)
CIE-LABlab(24.97, 45.76, -65.83)
CIE-LCHlch(24.97, 80.17, 304.81°)
OKLaboklab(37.34% 0.0232 -0.1902)
OKLCHoklch(37.34% 0.192 277)
XYZxyz(8.3581, 4.4049, 34.5852)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3122A2 #93A222
analogous
#2253A2 #3122A2 #7122A2
triadic
#3122A2 #A23122 #22A231
tetradic
#3122A2 #A22253 #93A222 #22A271
square
#3122A2 #A22253 #93A222 #22A271
split-complementary
#3122A2 #A27122 #53A222
monochromatic
#120D3D #22176F #3122A2 #412ED3 #6F61DE

Accessibility & contrast

On white

11.16
#3122A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3122A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3122A2
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3122A2#FFFFFF#000000##FFFFFF
##3122A21.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A6
Deuteranopia (green-blind)
#0036A0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3122a2;
/* rgb */ color: rgb(49, 34, 162);
/* oklch */ color: oklch(37.3% 0.192 277.0);
Tailwind
colors: {
  custom: {
    50: '#7b61bf',
    500: '#3122a2',
    950: '#000000',
  },
}
SCSS
$custom: #3122a2;
$custom-light: #7b61bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3122a2",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 247.031,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37335,
    "c": 0.19165,
    "h": 277
  },
  "luminance": 0.04406
}

Semantic roles & 50–950 ramp

primary
#3122A2
secondary
#B7C35D
accent
#E840D4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3122A2

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

Preview Lab → · Contrast checker → · Palette generator →

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