#2A2CA2#2A2CA2

#2A2CA2 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.184 H 272.8°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2A2CA2
RGBrgb(42, 44, 162)
HSLhsl(239, 59%, 40%)
HSVhsv(239, 74%, 64%)
CMYKcmyk(74.1%, 72.8%, 0%, 36.5%)
CIE-LABlab(26.45, 39.51, -63.39)
CIE-LCHlch(26.45, 74.70, 301.93°)
OKLaboklab(38.26% 0.0091 -0.1834)
OKLCHoklch(38.26% 0.184 272.8)
XYZxyz(8.3749, 4.9014, 34.6801)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2CA2 #A2A02A
analogous
#2A68A2 #2A2CA2 #642AA2
triadic
#2A2CA2 #A22A2C #2CA22A
tetradic
#2A2CA2 #A22A68 #A2A02A #2AA264
square
#2A2CA2 #A22A68 #A2A02A #2AA264
split-complementary
#2A2CA2 #A2642A #68A22A
monochromatic
#111241 #1D1F71 #2A2CA2 #3D3FCD #6D6FD9

Accessibility & contrast

On white

10.60
#2A2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2CA2
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2CA2#FFFFFF#000000##FFFFFF
##2A2CA21.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2ca2;
/* rgb */ color: rgb(42, 44, 162);
/* oklch */ color: oklch(38.3% 0.184 272.8);
Tailwind
colors: {
  custom: {
    50: '#7766bf',
    500: '#2a2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ca2;
$custom-light: #7766bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ca2",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 239,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38258,
    "c": 0.18363,
    "h": 272.8
  },
  "luminance": 0.04902
}

Semantic roles & 50–950 ramp

primary
#2A2CA2
secondary
#C0BF68
accent
#DF46E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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