#2D2AAA#2D2AAA

#2D2AAA is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.195 H 273.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2D2AAA
RGBrgb(45, 42, 170)
HSLhsl(241, 60%, 42%)
HSVhsv(241, 75%, 67%)
CMYKcmyk(73.5%, 75.3%, 0%, 33.3%)
CIE-LABlab(27.06, 43.66, -67.22)
CIE-LCHlch(27.06, 80.15, 303.01°)
OKLaboklab(38.99% 0.0123 -0.1945)
OKLCHoklch(38.99% 0.195 273.6)
XYZxyz(9.1634, 5.1152, 38.5268)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2AAA #A7AA2A
analogous
#2A67AA #2D2AAA #6D2AAA
triadic
#2D2AAA #AA2D2A #2AAA2D
tetradic
#2D2AAA #AA2A67 #A7AA2A #2AAA6D
square
#2D2AAA #AA2A67 #A7AA2A #2AAA6D
split-complementary
#2D2AAA #AA6D2A #67AA2A
monochromatic
#131248 #201E79 #2D2AAA #4441D0 #7572DC

Accessibility & contrast

On white

10.38
#2D2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2D2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2AAA
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2AAA#FFFFFF#000000##FFFFFF
##2D2AAA1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#003AA8
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d2aaa;
/* rgb */ color: rgb(45, 42, 170);
/* oklch */ color: oklch(39.0% 0.195 273.6);
Tailwind
colors: {
  custom: {
    50: '#7a65c5',
    500: '#2d2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #2d2aaa;
$custom-light: #7a65c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2aaa",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 241.406,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.3899,
    "c": 0.19485,
    "h": 273.6
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#2D2AAA
secondary
#C1C36C
accent
#E444E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2D2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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