#2D2AA4#2D2AA4

#2D2AA4 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.187 H 274.1°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#2D2AA4
RGBrgb(45, 42, 164)
HSLhsl(241, 59%, 40%)
HSVhsv(241, 74%, 64%)
CMYKcmyk(72.6%, 74.4%, 0%, 35.7%)
CIE-LABlab(26.43, 41.66, -64.64)
CIE-LCHlch(26.43, 76.90, 302.81°)
OKLaboklab(38.35% 0.0134 -0.1869)
OKLCHoklch(38.35% 0.187 274.1)
XYZxyz(8.6088, 4.8933, 35.6056)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2AA4 #A1A42A
analogous
#2A64A4 #2D2AA4 #6A2AA4
triadic
#2D2AA4 #A42D2A #2AA42D
tetradic
#2D2AA4 #A42A64 #A1A42A #2AA46A
square
#2D2AA4 #A42A64 #A1A42A #2AA46A
split-complementary
#2D2AA4 #A46A2A #64A42A
monochromatic
#121143 #201E73 #2D2AA4 #413ECD #716EDA

Accessibility & contrast

On white

10.61
#2D2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2D2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2AA4
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2AA4#FFFFFF#000000##FFFFFF
##2D2AA41.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#0039A2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d2aa4;
/* rgb */ color: rgb(45, 42, 164);
/* oklch */ color: oklch(38.4% 0.187 274.1);
Tailwind
colors: {
  custom: {
    50: '#7965c0',
    500: '#2d2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #2d2aa4;
$custom-light: #7965c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2aa4",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 241.475,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38354,
    "c": 0.18743,
    "h": 274.1
  },
  "luminance": 0.04894
}

Semantic roles & 50–950 ramp

primary
#2D2AA4
secondary
#BFC169
accent
#E245DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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