#3121A2#3121A2

#3121A2 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.2% C 0.193 H 277.1°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#3121A2
RGBrgb(49, 33, 162)
HSLhsl(247, 66%, 38%)
HSVhsv(247, 80%, 64%)
CMYKcmyk(69.8%, 79.6%, 0%, 36.5%)
CIE-LABlab(24.79, 46.27, -66.12)
CIE-LCHlch(24.79, 80.70, 304.98°)
OKLaboklab(37.21% 0.0237 -0.1911)
OKLCHoklch(37.21% 0.193 277.1)
XYZxyz(8.3299, 4.3486, 34.5758)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3121A2 #92A221
analogous
#2151A2 #3121A2 #7121A2
triadic
#3121A2 #A23121 #21A231
tetradic
#3121A2 #A22151 #92A221 #21A271
square
#3121A2 #A22151 #92A221 #21A271
split-complementary
#3121A2 #A27121 #51A221
monochromatic
#120C3C #22176F #3121A2 #412CD4 #6F5FDE

Accessibility & contrast

On white

11.23
#3121A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3121A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3121A2
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3121A2#FFFFFF#000000##FFFFFF
##3121A21.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3121a2;
/* rgb */ color: rgb(49, 33, 162);
/* oklch */ color: oklch(37.2% 0.193 277.1);
Tailwind
colors: {
  custom: {
    50: '#7b60bf',
    500: '#3121a2',
    950: '#000000',
  },
}
SCSS
$custom: #3121a2;
$custom-light: #7b60bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3121a2",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 247.442,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37212,
    "c": 0.19254,
    "h": 277.1
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#3121A2
secondary
#B6C35C
accent
#E93FD4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3121A2

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

Preview Lab → · Contrast checker → · Palette generator →

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