#2D29A2#2D29A2

#2D29A2 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.186 H 274.4°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#2D29A2
RGBrgb(45, 41, 162)
HSLhsl(242, 60%, 40%)
HSVhsv(242, 75%, 64%)
CMYKcmyk(72.2%, 74.7%, 0%, 36.5%)
CIE-LABlab(26.02, 41.57, -64.11)
CIE-LCHlch(26.02, 76.40, 302.96°)
OKLaboklab(38% 0.0143 -0.1854)
OKLCHoklch(38% 0.186 274.4)
XYZxyz(8.3946, 4.7516, 34.6502)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D29A2 #9EA229
analogous
#2962A2 #2D29A2 #6929A2
triadic
#2D29A2 #A22D29 #29A22D
tetradic
#2D29A2 #A22962 #9EA229 #29A269
square
#2D29A2 #A22962 #9EA229 #29A269
split-complementary
#2D29A2 #A26929 #62A229
monochromatic
#121040 #1F1D71 #2D29A2 #403BCD #6F6CDA

Accessibility & contrast

On white

10.77
#2D29A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2D29A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D29A2
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D29A2#FFFFFF#000000##FFFFFF
##2D29A21.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d29a2;
/* rgb */ color: rgb(45, 41, 162);
/* oklch */ color: oklch(38.0% 0.186 274.4);
Tailwind
colors: {
  custom: {
    50: '#7864bf',
    500: '#2d29a2',
    950: '#000000',
  },
}
SCSS
$custom: #2d29a2;
$custom-light: #7864bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d29a2",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 241.983,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37998,
    "c": 0.18595,
    "h": 274.4
  },
  "luminance": 0.04752
}

Semantic roles & 50–950 ramp

primary
#2D29A2
secondary
#BDC067
accent
#E345DE
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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