#2C2A96#2C2A96

#2C2A96 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.170 H 274.9°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2C2A96
RGBrgb(44, 42, 150)
HSLhsl(241, 56%, 38%)
HSVhsv(241, 72%, 59%)
CMYKcmyk(70.7%, 72%, 0%, 41.2%)
CIE-LABlab(24.93, 36.79, -58.57)
CIE-LCHlch(24.93, 69.16, 302.14°)
OKLaboklab(36.84% 0.0146 -0.1693)
OKLCHoklch(36.84% 0.17 274.9)
XYZxyz(7.3699, 4.3927, 29.3077)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A96 #94962A
analogous
#2A5E96 #2C2A96 #622A96
triadic
#2C2A96 #962C2A #2A962C
tetradic
#2C2A96 #962A5E #94962A #2A9662
square
#2C2A96 #962A5E #94962A #2A9662
split-complementary
#2C2A96 #96622A #5E962A
monochromatic
#100F36 #1E1D66 #2C2A96 #3A37C6 #6866D4

Accessibility & contrast

On white

11.18
#2C2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2C2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A96
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A96#FFFFFF#000000##FFFFFF
##2C2A961.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c2a96;
/* rgb */ color: rgb(44, 42, 150);
/* oklch */ color: oklch(36.8% 0.170 274.9);
Tailwind
colors: {
  custom: {
    50: '#7564b6',
    500: '#2c2a96',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a96;
$custom-light: #7564b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a96",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 241.111,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36837,
    "c": 0.1699,
    "h": 274.9
  },
  "luminance": 0.04393
}

Semantic roles & 50–950 ramp

primary
#2C2A96
secondary
#B9BA61
accent
#E048DD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2C2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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