#2A1C83#2A1C83

#2A1C83 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.161 H 278.8°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2A1C83
RGBrgb(42, 28, 131)
HSLhsl(248, 65%, 31%)
HSVhsv(248, 79%, 51%)
CMYKcmyk(67.9%, 78.6%, 0%, 48.6%)
CIE-LABlab(19.89, 38.30, -55.04)
CIE-LCHlch(19.89, 67.06, 304.83°)
OKLaboklab(32.62% 0.0246 -0.159)
OKLCHoklch(32.62% 0.161 278.8)
XYZxyz(5.4655, 2.9610, 21.7518)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C83 #75831C
analogous
#1C4183 #2A1C83 #5D1C83
triadic
#2A1C83 #832A1C #1C832A
tetradic
#2A1C83 #831C41 #75831C #1C835D
square
#2A1C83 #831C41 #75831C #1C835D
split-complementary
#2A1C83 #835D1C #41831C
monochromatic
#0A061E #1A1151 #2A1C83 #3A27B5 #5743D7

Accessibility & contrast

On white

13.19
#2A1C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A1C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C83
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C83#FFFFFF#000000##FFFFFF
##2A1C831.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1c83;
/* rgb */ color: rgb(42, 28, 131);
/* oklch */ color: oklch(32.6% 0.161 278.8);
Tailwind
colors: {
  custom: {
    50: '#715ba8',
    500: '#2a1c83',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c83;
$custom-light: #715ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c83",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 248.155,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32622,
    "c": 0.16085,
    "h": 278.8
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#2A1C83
secondary
#A7B645
accent
#E840D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1C83

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

Preview Lab → · Contrast checker → · Palette generator →

#2A1C83 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva