#2A29A2#2A29A2

#2A29A2 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.187 H 273.3°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2A29A2
RGBrgb(42, 41, 162)
HSLhsl(240, 60%, 40%)
HSVhsv(240, 75%, 64%)
CMYKcmyk(74.1%, 74.7%, 0%, 36.5%)
CIE-LABlab(25.82, 41.27, -64.43)
CIE-LCHlch(25.82, 76.52, 302.64°)
OKLaboklab(37.81% 0.0106 -0.1864)
OKLCHoklch(37.81% 0.187 273.3)
XYZxyz(8.2672, 4.6859, 34.6442)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A29A2 #A1A229
analogous
#2964A2 #2A29A2 #6729A2
triadic
#2A29A2 #A22A29 #29A22A
tetradic
#2A29A2 #A22964 #A1A229 #29A267
square
#2A29A2 #A22964 #A1A229 #29A267
split-complementary
#2A29A2 #A26729 #64A229
monochromatic
#111040 #1D1D71 #2A29A2 #3C3BCD #6D6CDA

Accessibility & contrast

On white

10.84
#2A29A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A29A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A29A2
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A29A2#FFFFFF#000000##FFFFFF
##2A29A21.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a29a2;
/* rgb */ color: rgb(42, 41, 162);
/* oklch */ color: oklch(37.8% 0.187 273.3);
Tailwind
colors: {
  custom: {
    50: '#7764bf',
    500: '#2a29a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a29a2;
$custom-light: #7764bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a29a2",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 240.496,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37808,
    "c": 0.18672,
    "h": 273.3
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#2A29A2
secondary
#C0C067
accent
#E345E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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