#2A2C99#2A2C99

#2A2C99 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.172 H 273.5°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2A2C99
RGBrgb(42, 44, 153)
HSLhsl(239, 57%, 38%)
HSVhsv(239, 73%, 60%)
CMYKcmyk(72.5%, 71.2%, 0%, 40%)
CIE-LABlab(25.54, 36.38, -59.40)
CIE-LCHlch(25.54, 69.66, 301.48°)
OKLaboklab(37.33% 0.0105 -0.1718)
OKLCHoklch(37.33% 0.172 273.5)
XYZxyz(7.6034, 4.5928, 30.6166)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C99 #99972A
analogous
#2A6399 #2A2C99 #5F2A99
triadic
#2A2C99 #992A2C #2C992A
tetradic
#2A2C99 #992A63 #99972A #2A995F
square
#2A2C99 #992A63 #99972A #2A995F
split-complementary
#2A2C99 #995F2A #63992A
monochromatic
#101039 #1D1E69 #2A2C99 #383AC8 #686AD6

Accessibility & contrast

On white

10.94
#2A2C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A2C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C99
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C99#FFFFFF#000000##FFFFFF
##2A2C991.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2c99;
/* rgb */ color: rgb(42, 44, 153);
/* oklch */ color: oklch(37.3% 0.172 273.5);
Tailwind
colors: {
  custom: {
    50: '#7566b8',
    500: '#2a2c99',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c99;
$custom-light: #7566b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c99",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 238.919,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37332,
    "c": 0.17209,
    "h": 273.5
  },
  "luminance": 0.04594
}

Semantic roles & 50–950 ramp

primary
#2A2C99
secondary
#BCBA63
accent
#DD48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2A2C99

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

Preview Lab → · Contrast checker → · Palette generator →

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