#2D2A99#2D2A99

#2D2A99 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.174 H 275.1°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2D2A99
RGBrgb(45, 42, 153)
HSLhsl(242, 57%, 38%)
HSVhsv(242, 73%, 60%)
CMYKcmyk(70.6%, 72.5%, 0%, 40%)
CIE-LABlab(25.30, 37.94, -59.80)
CIE-LCHlch(25.30, 70.82, 302.39°)
OKLaboklab(37.21% 0.0154 -0.1728)
OKLCHoklch(37.21% 0.174 275.1)
XYZxyz(7.6580, 4.5130, 30.5983)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A99 #96992A
analogous
#2A5E99 #2D2A99 #642A99
triadic
#2D2A99 #992D2A #2A992D
tetradic
#2D2A99 #992A5E #96992A #2A9964
square
#2D2A99 #992A5E #96992A #2A9964
split-complementary
#2D2A99 #99642A #5E992A
monochromatic
#111039 #1F1D69 #2D2A99 #3C38C8 #6B68D6

Accessibility & contrast

On white

11.04
#2D2A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D2A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A99
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A99#FFFFFF#000000##FFFFFF
##2D2A991.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d2a99;
/* rgb */ color: rgb(45, 42, 153);
/* oklch */ color: oklch(37.2% 0.174 275.1);
Tailwind
colors: {
  custom: {
    50: '#7665b8',
    500: '#2d2a99',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a99;
$custom-light: #7665b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a99",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 241.622,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37211,
    "c": 0.17352,
    "h": 275.1
  },
  "luminance": 0.04514
}

Semantic roles & 50–950 ramp

primary
#2D2A99
secondary
#B9BC63
accent
#E048DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2D2A99

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

Preview Lab → · Contrast checker → · Palette generator →

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