#2A2C9B#2A2C9B

#2A2C9B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.175 H 273.3°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2A2C9B
RGBrgb(42, 44, 155)
HSLhsl(239, 57%, 39%)
HSVhsv(239, 73%, 61%)
CMYKcmyk(72.9%, 71.6%, 0%, 39.2%)
CIE-LABlab(25.74, 37.08, -60.30)
CIE-LCHlch(25.74, 70.79, 301.59°)
OKLaboklab(37.54% 0.0102 -0.1744)
OKLCHoklch(37.54% 0.175 273.3)
XYZxyz(7.7699, 4.6594, 31.4939)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C9B #9B992A
analogous
#2A649B #2A2C9B #602A9B
triadic
#2A2C9B #9B2A2C #2C9B2A
tetradic
#2A2C9B #9B2A64 #9B992A #2A9B60
square
#2A2C9B #9B2A64 #9B992A #2A9B60
split-complementary
#2A2C9B #9B602A #649B2A
monochromatic
#10113B #1D1E6B #2A2C9B #393BC9 #696BD6

Accessibility & contrast

On white

10.87
#2A2C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2C9B
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C9B#FFFFFF#000000##FFFFFF
##2A2C9B1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2c9b;
/* rgb */ color: rgb(42, 44, 155);
/* oklch */ color: oklch(37.5% 0.175 273.3);
Tailwind
colors: {
  custom: {
    50: '#7566ba',
    500: '#2a2c9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c9b;
$custom-light: #7566ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c9b",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 238.938,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37536,
    "c": 0.17468,
    "h": 273.3
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#2A2C9B
secondary
#BDBB64
accent
#DE47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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