#2A2C9A#2A2C9A

#2A2C9A is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.173 H 273.4°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2A2C9A
RGBrgb(42, 44, 154)
HSLhsl(239, 57%, 38%)
HSVhsv(239, 73%, 60%)
CMYKcmyk(72.7%, 71.4%, 0%, 39.6%)
CIE-LABlab(25.64, 36.73, -59.85)
CIE-LCHlch(25.64, 70.23, 301.54°)
OKLaboklab(37.43% 0.0103 -0.1731)
OKLCHoklch(37.43% 0.173 273.4)
XYZxyz(7.6863, 4.6259, 31.0534)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C9A #9A982A
analogous
#2A649A #2A2C9A #602A9A
triadic
#2A2C9A #9A2A2C #2C9A2A
tetradic
#2A2C9A #9A2A64 #9A982A #2A9A60
square
#2A2C9A #9A2A64 #9A982A #2A9A60
split-complementary
#2A2C9A #9A602A #649A2A
monochromatic
#10113A #1D1E6A #2A2C9A #383BC9 #686AD6

Accessibility & contrast

On white

10.91
#2A2C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A2C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C9A
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C9A#FFFFFF#000000##FFFFFF
##2A2C9A1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003798
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2c9a;
/* rgb */ color: rgb(42, 44, 154);
/* oklch */ color: oklch(37.4% 0.173 273.4);
Tailwind
colors: {
  custom: {
    50: '#7566b9',
    500: '#2a2c9a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c9a;
$custom-light: #7566b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c9a",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 238.929,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37434,
    "c": 0.17339,
    "h": 273.4
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#2A2C9A
secondary
#BCBB63
accent
#DE47E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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