#2A2C9C#2A2C9C

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

Color values

HEX#2A2C9C
RGBrgb(42, 44, 156)
HSLhsl(239, 58%, 39%)
HSVhsv(239, 73%, 61%)
CMYKcmyk(73.1%, 71.8%, 0%, 38.8%)
CIE-LABlab(25.84, 37.43, -60.74)
CIE-LCHlch(25.84, 71.35, 301.64°)
OKLaboklab(37.64% 0.01 -0.1757)
OKLCHoklch(37.64% 0.176 273.3)
XYZxyz(7.8543, 4.6931, 31.9380)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C9C #9C9A2A
analogous
#2A659C #2A2C9C #612A9C
triadic
#2A2C9C #9C2A2C #2C9C2A
tetradic
#2A2C9C #9C2A65 #9C9A2A #2A9C61
square
#2A2C9C #9C2A65 #9C9A2A #2A9C61
split-complementary
#2A2C9C #9C612A #659C2A
monochromatic
#10113C #1D1E6C #2A2C9C #393CCA #6A6CD7

Accessibility & contrast

On white

10.83
#2A2C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A2C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C9C
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C9C#FFFFFF#000000##FFFFFF
##2A2C9C1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2c9c;
/* rgb */ color: rgb(42, 44, 156);
/* oklch */ color: oklch(37.6% 0.176 273.3);
Tailwind
colors: {
  custom: {
    50: '#7566ba',
    500: '#2a2c9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c9c;
$custom-light: #7566ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c9c",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 238.947,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37638,
    "c": 0.17597,
    "h": 273.3
  },
  "luminance": 0.04694
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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