#2C1E81#2C1E81

#2C1E81 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.156 H 279.9°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#2C1E81
RGBrgb(44, 30, 129)
HSLhsl(248, 62%, 31%)
HSVhsv(248, 77%, 51%)
CMYKcmyk(65.9%, 76.7%, 0%, 49.4%)
CIE-LABlab(20.24, 36.78, -53.19)
CIE-LCHlch(20.24, 64.67, 304.66°)
OKLaboklab(32.85% 0.0268 -0.1535)
OKLCHoklch(32.85% 0.156 279.9)
XYZxyz(5.4642, 3.0486, 21.0651)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E81 #73811E
analogous
#1E4181 #2C1E81 #5D1E81
triadic
#2C1E81 #812C1E #1E812C
tetradic
#2C1E81 #811E41 #73811E #1E815D
square
#2C1E81 #811E41 #73811E #1E815D
split-complementary
#2C1E81 #815D1E #41811E
monochromatic
#0A071E #1B124F #2C1E81 #3D2AB3 #5A46D4

Accessibility & contrast

On white

13.05
#2C1E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2C1E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E81
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E81#FFFFFF#000000##FFFFFF
##2C1E811.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1e81;
/* rgb */ color: rgb(44, 30, 129);
/* oklch */ color: oklch(32.8% 0.156 279.9);
Tailwind
colors: {
  custom: {
    50: '#715ca7',
    500: '#2c1e81',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e81;
$custom-light: #715ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e81",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 248.485,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32848,
    "c": 0.15584,
    "h": 279.9
  },
  "luminance": 0.03049
}

Semantic roles & 50–950 ramp

primary
#2C1E81
secondary
#A5B447
accent
#E542CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1E81

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

Preview Lab → · Contrast checker → · Palette generator →

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