#2D2AA0#2D2AA0

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

Color values

HEX#2D2AA0
RGBrgb(45, 42, 160)
HSLhsl(242, 58%, 40%)
HSVhsv(242, 74%, 63%)
CMYKcmyk(71.9%, 73.8%, 0%, 37.3%)
CIE-LABlab(26.01, 40.32, -62.89)
CIE-LCHlch(26.01, 74.71, 302.66°)
OKLaboklab(37.94% 0.0142 -0.1819)
OKLCHoklch(37.94% 0.182 274.5)
XYZxyz(8.2532, 4.7511, 33.7330)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2AA0 #9DA02A
analogous
#2A62A0 #2D2AA0 #682AA0
triadic
#2D2AA0 #A02D2A #2AA02D
tetradic
#2D2AA0 #A02A62 #9DA02A #2AA068
square
#2D2AA0 #A02A62 #9DA02A #2AA068
split-complementary
#2D2AA0 #A0682A #62A02A
monochromatic
#12113F #1F1D70 #2D2AA0 #3F3CCC #6F6CD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D2AA0#FFFFFF#000000##FFFFFF
##2D2AA01.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)
#0043A3
Deuteranopia (green-blind)
#00389E
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d2aa0;
/* rgb */ color: rgb(45, 42, 160);
/* oklch */ color: oklch(37.9% 0.182 274.5);
Tailwind
colors: {
  custom: {
    50: '#7865bd',
    500: '#2d2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #2d2aa0;
$custom-light: #7865bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2aa0",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 241.525,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37935,
    "c": 0.18242,
    "h": 274.5
  },
  "luminance": 0.04752
}

Semantic roles & 50–950 ramp

primary
#2D2AA0
secondary
#BDBF67
accent
#E246DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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