#2A2CA6#2A2CA6

#2A2CA6 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.189 H 272.6°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#2A2CA6
RGBrgb(42, 44, 166)
HSLhsl(239, 60%, 41%)
HSVhsv(239, 75%, 65%)
CMYKcmyk(74.7%, 73.5%, 0%, 34.9%)
CIE-LABlab(26.87, 40.88, -65.13)
CIE-LCHlch(26.87, 76.90, 302.12°)
OKLaboklab(38.68% 0.0084 -0.1885)
OKLCHoklch(38.68% 0.189 272.6)
XYZxyz(8.7361, 5.0459, 36.5825)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2CA6 #A6A42A
analogous
#2A6AA6 #2A2CA6 #662AA6
triadic
#2A2CA6 #A62A2C #2CA62A
tetradic
#2A2CA6 #A62A6A #A6A42A #2AA666
square
#2A2CA6 #A62A6A #A6A42A #2AA666
split-complementary
#2A2CA6 #A6662A #6AA62A
monochromatic
#111244 #1E1F75 #2A2CA6 #3F41CE #7071DB

Accessibility & contrast

On white

10.45
#2A2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2CA6
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2CA6#FFFFFF#000000##FFFFFF
##2A2CA61.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2ca6;
/* rgb */ color: rgb(42, 44, 166);
/* oklch */ color: oklch(38.7% 0.189 272.6);
Tailwind
colors: {
  custom: {
    50: '#7866c2',
    500: '#2a2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ca6;
$custom-light: #7866c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ca6",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 239.032,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38677,
    "c": 0.18867,
    "h": 272.6
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#2A2CA6
secondary
#C2C06A
accent
#E045E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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