#2A2CB2#2A2CB2

#2A2CB2 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.0% C 0.203 H 271.8°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#2A2CB2
RGBrgb(42, 44, 178)
HSLhsl(239, 62%, 43%)
HSVhsv(239, 76%, 70%)
CMYKcmyk(76.4%, 75.3%, 0%, 30.2%)
CIE-LABlab(28.13, 44.94, -70.25)
CIE-LCHlch(28.13, 83.39, 302.61°)
OKLaboklab(39.96% 0.0064 -0.2034)
OKLCHoklch(39.96% 0.203 271.8)
XYZxyz(9.8887, 5.5069, 42.6526)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2CB2 #B2B02A
analogous
#2A70B2 #2A2CB2 #6C2AB2
triadic
#2A2CB2 #B22A2C #2CB22A
tetradic
#2A2CB2 #B22A70 #B2B02A #2AB26C
square
#2A2CB2 #B22A70 #B2B02A #2AB26C
split-complementary
#2A2CB2 #B26C2A #70B22A
monochromatic
#13144F #1E2080 #2A2CB2 #4648D3 #7779DF

Accessibility & contrast

On white

9.99
#2A2CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A2CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2CB2
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2CB2#FFFFFF#000000##FFFFFF
##2A2CB21.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003CB0
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a2cb2;
/* rgb */ color: rgb(42, 44, 178);
/* oklch */ color: oklch(40.0% 0.203 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b67ca',
    500: '#2a2cb2',
    950: '#000000',
  },
}
SCSS
$custom: #2a2cb2;
$custom-light: #7b67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2cb2",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 239.118,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39955,
    "c": 0.20346,
    "h": 271.8
  },
  "luminance": 0.05508
}

Semantic roles & 50–950 ramp

primary
#2A2CB2
secondary
#C7C671
accent
#E343E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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