#2C2AA1#2C2AA1

#2C2AA1 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.184 H 274.0°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#2C2AA1
RGBrgb(44, 42, 161)
HSLhsl(241, 59%, 40%)
HSVhsv(241, 74%, 63%)
CMYKcmyk(72.7%, 73.9%, 0%, 36.9%)
CIE-LABlab(26.05, 40.55, -63.44)
CIE-LCHlch(26.05, 75.30, 302.59°)
OKLaboklab(37.97% 0.0127 -0.1835)
OKLCHoklch(37.97% 0.184 274)
XYZxyz(8.2976, 4.7638, 34.1935)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2AA1 #9FA12A
analogous
#2A64A1 #2C2AA1 #672AA1
triadic
#2C2AA1 #A12C2A #2AA12C
tetradic
#2C2AA1 #A12A64 #9FA12A #2AA167
square
#2C2AA1 #A12A64 #9FA12A #2AA167
split-complementary
#2C2AA1 #A1672A #64A12A
monochromatic
#111140 #1F1D70 #2C2AA1 #3E3CCC #6E6DD9

Accessibility & contrast

On white

10.75
#2C2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2C2AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2AA1
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2AA1#FFFFFF#000000##FFFFFF
##2C2AA11.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c2aa1;
/* rgb */ color: rgb(44, 42, 161);
/* oklch */ color: oklch(38.0% 0.184 274.0);
Tailwind
colors: {
  custom: {
    50: '#7865be',
    500: '#2c2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2c2aa1;
$custom-light: #7865be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2aa1",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 241.008,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37975,
    "c": 0.18393,
    "h": 274
  },
  "luminance": 0.04765
}

Semantic roles & 50–950 ramp

primary
#2C2AA1
secondary
#BEC067
accent
#E246DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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