#2D2AA5#2D2AA5

#2D2AA5 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.189 H 274.0°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#2D2AA5
RGBrgb(45, 42, 165)
HSLhsl(241, 59%, 41%)
HSVhsv(241, 75%, 65%)
CMYKcmyk(72.7%, 74.5%, 0%, 35.3%)
CIE-LABlab(26.53, 42.00, -65.07)
CIE-LCHlch(26.53, 77.45, 302.84°)
OKLaboklab(38.46% 0.0133 -0.1882)
OKLCHoklch(38.46% 0.189 274)
XYZxyz(8.6994, 4.9296, 36.0830)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2AA5 #A2A52A
analogous
#2A65A5 #2D2AA5 #6A2AA5
triadic
#2D2AA5 #A52D2A #2AA52D
tetradic
#2D2AA5 #A52A65 #A2A52A #2AA56A
square
#2D2AA5 #A52A65 #A2A52A #2AA56A
split-complementary
#2D2AA5 #A56A2A #65A52A
monochromatic
#121143 #201E74 #2D2AA5 #423ECE #726FDA

Accessibility & contrast

On white

10.57
#2D2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2D2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2AA5
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2AA5#FFFFFF#000000##FFFFFF
##2D2AA51.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2aa5;
/* rgb */ color: rgb(45, 42, 165);
/* oklch */ color: oklch(38.5% 0.189 274.0);
Tailwind
colors: {
  custom: {
    50: '#7965c1',
    500: '#2d2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #2d2aa5;
$custom-light: #7965c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2aa5",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 241.463,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.3846,
    "c": 0.18868,
    "h": 274
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#2D2AA5
secondary
#BFC169
accent
#E345DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #2D2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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