#3121A4#3121A4

#3121A4 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.195 H 276.8°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#3121A4
RGBrgb(49, 33, 164)
HSLhsl(247, 66%, 39%)
HSVhsv(247, 80%, 64%)
CMYKcmyk(70.1%, 79.9%, 0%, 35.7%)
CIE-LABlab(25.01, 46.89, -66.96)
CIE-LCHlch(25.01, 81.75, 305.00°)
OKLaboklab(37.43% 0.0232 -0.1935)
OKLCHoklch(37.43% 0.195 276.8)
XYZxyz(8.5091, 4.4202, 35.5195)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3121A4 #94A421
analogous
#2152A4 #3121A4 #7221A4
triadic
#3121A4 #A43121 #21A431
tetradic
#3121A4 #A42152 #94A421 #21A472
square
#3121A4 #A42152 #94A421 #21A472
split-complementary
#3121A4 #A47221 #52A421
monochromatic
#130C3E #221771 #3121A4 #422DD5 #7060DF

Accessibility & contrast

On white

11.15
#3121A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3121A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3121A4
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3121A4#FFFFFF#000000##FFFFFF
##3121A41.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3121a4;
/* rgb */ color: rgb(49, 33, 164);
/* oklch */ color: oklch(37.4% 0.195 276.8);
Tailwind
colors: {
  custom: {
    50: '#7b60c0',
    500: '#3121a4',
    950: '#000000',
  },
}
SCSS
$custom: #3121a4;
$custom-light: #7b60c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3121a4",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 247.328,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37433,
    "c": 0.19491,
    "h": 276.8
  },
  "luminance": 0.04421
}

Semantic roles & 50–950 ramp

primary
#3121A4
secondary
#B7C45D
accent
#E93ED5
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3121A4

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

Preview Lab → · Contrast checker → · Palette generator →

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