#3121A1#3121A1

#3121A1 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.191 H 277.2°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#3121A1
RGBrgb(49, 33, 161)
HSLhsl(248, 66%, 38%)
HSVhsv(248, 80%, 63%)
CMYKcmyk(69.6%, 79.5%, 0%, 36.9%)
CIE-LABlab(24.68, 45.96, -65.69)
CIE-LCHlch(24.68, 80.17, 304.98°)
OKLaboklab(37.1% 0.024 -0.1898)
OKLCHoklch(37.1% 0.191 277.2)
XYZxyz(8.2414, 4.3132, 34.1095)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3121A1 #91A121
analogous
#2151A1 #3121A1 #7121A1
triadic
#3121A1 #A13121 #21A131
tetradic
#3121A1 #A12151 #91A121 #21A171
square
#3121A1 #A12151 #91A121 #21A171
split-complementary
#3121A1 #A17121 #51A121
monochromatic
#120C3B #22176E #3121A1 #412CD4 #6E5EDE

Accessibility & contrast

On white

11.27
#3121A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3121A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3121A1
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3121A1#FFFFFF#000000##FFFFFF
##3121A11.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3121a1;
/* rgb */ color: rgb(49, 33, 161);
/* oklch */ color: oklch(37.1% 0.191 277.2);
Tailwind
colors: {
  custom: {
    50: '#7a60be',
    500: '#3121a1',
    950: '#000000',
  },
}
SCSS
$custom: #3121a1;
$custom-light: #7a60be;
$custom-dark: #000000;
JSON
{
  "hex": "#3121a1",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 161
  },
  "hsl": {
    "h": 247.5,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37102,
    "c": 0.19134,
    "h": 277.2
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3121A1

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

Preview Lab → · Contrast checker → · Palette generator →

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