#2A29A6#2A29A6

#2A29A6 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.192 H 273.0°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2A29A6
RGBrgb(42, 41, 166)
HSLhsl(240, 60%, 41%)
HSVhsv(240, 75%, 65%)
CMYKcmyk(74.7%, 75.3%, 0%, 34.9%)
CIE-LABlab(26.25, 42.62, -66.15)
CIE-LCHlch(26.25, 78.70, 302.79°)
OKLaboklab(38.24% 0.0099 -0.1914)
OKLCHoklch(38.24% 0.192 273)
XYZxyz(8.6284, 4.8304, 36.5466)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A29A6 #A5A629
analogous
#2966A6 #2A29A6 #6829A6
triadic
#2A29A6 #A62A29 #29A62A
tetradic
#2A29A6 #A62966 #A5A629 #29A668
square
#2A29A6 #A62966 #A5A629 #29A668
split-complementary
#2A29A6 #A66829 #66A629
monochromatic
#111144 #1E1D75 #2A29A6 #3E3DCF #6F6EDB

Accessibility & contrast

On white

10.68
#2A29A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A29A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A29A6
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A29A6#FFFFFF#000000##FFFFFF
##2A29A61.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a29a6;
/* rgb */ color: rgb(42, 41, 166);
/* oklch */ color: oklch(38.2% 0.192 273.0);
Tailwind
colors: {
  custom: {
    50: '#7864c2',
    500: '#2a29a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a29a6;
$custom-light: #7864c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a29a6",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 166
  },
  "hsl": {
    "h": 240.48,
    "s": 60.386,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38237,
    "c": 0.19168,
    "h": 273
  },
  "luminance": 0.04831
}

Semantic roles & 50–950 ramp

primary
#2A29A6
secondary
#C1C269
accent
#E444E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A29A6

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

Preview Lab → · Contrast checker → · Palette generator →

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