#2A2CA7#2A2CA7

#2A2CA7 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.190 H 272.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2A2CA7
RGBrgb(42, 44, 167)
HSLhsl(239, 60%, 41%)
HSVhsv(239, 75%, 65%)
CMYKcmyk(74.9%, 73.7%, 0%, 34.5%)
CIE-LABlab(26.97, 41.23, -65.57)
CIE-LCHlch(26.97, 77.45, 302.16°)
OKLaboklab(38.78% 0.0083 -0.1897)
OKLCHoklch(38.78% 0.19 272.5)
XYZxyz(8.8282, 5.0827, 37.0675)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2CA7 #A7A52A
analogous
#2A6AA7 #2A2CA7 #662AA7
triadic
#2A2CA7 #A72A2C #2CA72A
tetradic
#2A2CA7 #A72A6A #A7A52A #2AA766
square
#2A2CA7 #A72A6A #A7A52A #2AA766
split-complementary
#2A2CA7 #A7662A #6AA72A
monochromatic
#111245 #1E1F76 #2A2CA7 #3F42CF #7072DB

Accessibility & contrast

On white

10.41
#2A2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A2CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2CA7
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2CA7#FFFFFF#000000##FFFFFF
##2A2CA71.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2ca7;
/* rgb */ color: rgb(42, 44, 167);
/* oklch */ color: oklch(38.8% 0.190 272.5);
Tailwind
colors: {
  custom: {
    50: '#7866c2',
    500: '#2a2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ca7;
$custom-light: #7866c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ca7",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 239.04,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38782,
    "c": 0.18991,
    "h": 272.5
  },
  "luminance": 0.05084
}

Semantic roles & 50–950 ramp

primary
#2A2CA7
secondary
#C2C16B
accent
#E045E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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