#2C2AA2#2C2AA2

#2C2AA2 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.185 H 273.9°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2C2AA2
RGBrgb(44, 42, 162)
HSLhsl(241, 59%, 40%)
HSVhsv(241, 74%, 64%)
CMYKcmyk(72.8%, 74.1%, 0%, 36.5%)
CIE-LABlab(26.15, 40.89, -63.88)
CIE-LCHlch(26.15, 75.84, 302.62°)
OKLaboklab(38.08% 0.0126 -0.1848)
OKLCHoklch(38.08% 0.185 273.9)
XYZxyz(8.3861, 4.7992, 34.6598)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2AA2 #A0A22A
analogous
#2A64A2 #2C2AA2 #682AA2
triadic
#2C2AA2 #A22C2A #2AA22C
tetradic
#2C2AA2 #A22A64 #A0A22A #2AA268
square
#2C2AA2 #A22A64 #A0A22A #2AA268
split-complementary
#2C2AA2 #A2682A #64A22A
monochromatic
#121141 #1F1D71 #2C2AA2 #3F3DCD #6F6DD9

Accessibility & contrast

On white

10.71
#2C2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2C2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2AA2
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2AA2#FFFFFF#000000##FFFFFF
##2C2AA21.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0038A0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c2aa2;
/* rgb */ color: rgb(44, 42, 162);
/* oklch */ color: oklch(38.1% 0.185 273.9);
Tailwind
colors: {
  custom: {
    50: '#7865bf',
    500: '#2c2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #2c2aa2;
$custom-light: #7865bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2aa2",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 241,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.3808,
    "c": 0.18519,
    "h": 273.9
  },
  "luminance": 0.048
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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