#2C2A76#2C2A76

#2C2A76 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.126 H 278.4°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2C2A76
RGBrgb(44, 42, 118)
HSLhsl(242, 48%, 31%)
HSVhsv(242, 64%, 46%)
CMYKcmyk(62.7%, 64.4%, 0%, 53.7%)
CIE-LABlab(21.94, 25.49, -43.41)
CIE-LCHlch(21.94, 50.34, 300.42°)
OKLaboklab(33.75% 0.0184 -0.1249)
OKLCHoklch(33.75% 0.126 278.4)
XYZxyz(5.1356, 3.4990, 17.5408)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A76 #74762A
analogous
#2A4E76 #2C2A76 #522A76
triadic
#2C2A76 #762C2A #2A762C
tetradic
#2C2A76 #762A4E #74762A #2A7652
square
#2C2A76 #762A4E #74762A #2A7652
split-complementary
#2C2A76 #76522A #4E762A
monochromatic
#0A0A1C #1B1A49 #2C2A76 #3D3AA3 #5A57C3

Accessibility & contrast

On white

12.35
#2C2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C2A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A76
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A76#FFFFFF#000000##FFFFFF
##2C2A761.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c2a76;
/* rgb */ color: rgb(44, 42, 118);
/* oklch */ color: oklch(33.8% 0.126 278.4);
Tailwind
colors: {
  custom: {
    50: '#6e639e',
    500: '#2c2a76',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a76;
$custom-light: #6e639e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a76",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 241.579,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33754,
    "c": 0.12622,
    "h": 278.4
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#2C2A76
secondary
#A6A854
accent
#D751D4
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2C2A76

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

Preview Lab → · Contrast checker → · Palette generator →

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