#2C2AA6#2C2AA6

#2C2AA6 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.190 H 273.6°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2C2AA6
RGBrgb(44, 42, 166)
HSLhsl(241, 60%, 41%)
HSVhsv(241, 75%, 65%)
CMYKcmyk(73.5%, 74.7%, 0%, 34.9%)
CIE-LABlab(26.57, 42.24, -65.61)
CIE-LCHlch(26.57, 78.03, 302.77°)
OKLaboklab(38.5% 0.0118 -0.1898)
OKLCHoklch(38.5% 0.19 273.6)
XYZxyz(8.7473, 4.9437, 36.5622)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2AA6 #A4A62A
analogous
#2A66A6 #2C2AA6 #6A2AA6
triadic
#2C2AA6 #A62C2A #2AA62C
tetradic
#2C2AA6 #A62A66 #A4A62A #2AA66A
square
#2C2AA6 #A62A66 #A4A62A #2AA66A
split-complementary
#2C2AA6 #A66A2A #66A62A
monochromatic
#121144 #1F1E75 #2C2AA6 #413FCE #7170DB

Accessibility & contrast

On white

10.56
#2C2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2C2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2AA6
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2AA6#FFFFFF#000000##FFFFFF
##2C2AA61.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c2aa6;
/* rgb */ color: rgb(44, 42, 166);
/* oklch */ color: oklch(38.5% 0.190 273.6);
Tailwind
colors: {
  custom: {
    50: '#7965c2',
    500: '#2c2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #2c2aa6;
$custom-light: #7965c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2aa6",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 240.968,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38503,
    "c": 0.19017,
    "h": 273.6
  },
  "luminance": 0.04945
}

Semantic roles & 50–950 ramp

primary
#2C2AA6
secondary
#C0C26A
accent
#E345E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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