#2A2C96#2A2C96

#2A2C96 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.168 H 273.7°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2A2C96
RGBrgb(42, 44, 150)
HSLhsl(239, 56%, 38%)
HSVhsv(239, 72%, 59%)
CMYKcmyk(72%, 70.7%, 0%, 41.2%)
CIE-LABlab(25.24, 35.33, -58.05)
CIE-LCHlch(25.24, 67.96, 301.32°)
OKLaboklab(37.03% 0.0109 -0.1678)
OKLCHoklch(37.03% 0.168 273.7)
XYZxyz(7.3587, 4.4949, 29.3280)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C96 #96942A
analogous
#2A6296 #2A2C96 #5E2A96
triadic
#2A2C96 #962A2C #2C962A
tetradic
#2A2C96 #962A62 #96942A #2A965E
square
#2A2C96 #962A62 #96942A #2A965E
split-complementary
#2A2C96 #965E2A #62962A
monochromatic
#0F1036 #1D1E66 #2A2C96 #373AC6 #6668D4

Accessibility & contrast

On white

11.06
#2A2C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A2C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C96
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C96#FFFFFF#000000##FFFFFF
##2A2C961.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2c96;
/* rgb */ color: rgb(42, 44, 150);
/* oklch */ color: oklch(37.0% 0.168 273.7);
Tailwind
colors: {
  custom: {
    50: '#7466b6',
    500: '#2a2c96',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c96;
$custom-light: #7466b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c96",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 238.889,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37028,
    "c": 0.16817,
    "h": 273.7
  },
  "luminance": 0.04496
}

Semantic roles & 50–950 ramp

primary
#2A2C96
secondary
#BAB961
accent
#DD48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2C96

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

Preview Lab → · Contrast checker → · Palette generator →

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