#2D2A9E#2D2A9E

#2D2A9E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.180 H 274.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2D2A9E
RGBrgb(45, 42, 158)
HSLhsl(242, 58%, 39%)
HSVhsv(242, 73%, 62%)
CMYKcmyk(71.5%, 73.4%, 0%, 38%)
CIE-LABlab(25.81, 39.64, -62.01)
CIE-LCHlch(25.81, 73.60, 302.59°)
OKLaboklab(37.73% 0.0145 -0.1793)
OKLCHoklch(37.73% 0.18 274.6)
XYZxyz(8.0797, 4.6817, 32.8190)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A9E #9B9E2A
analogous
#2A619E #2D2A9E #672A9E
triadic
#2D2A9E #9E2D2A #2A9E2D
tetradic
#2D2A9E #9E2A61 #9B9E2A #2A9E67
square
#2D2A9E #9E2A61 #9B9E2A #2A9E67
split-complementary
#2D2A9E #9E672A #619E2A
monochromatic
#11103D #1F1D6E #2D2A9E #3E3ACB #6E6BD8

Accessibility & contrast

On white

10.84
#2D2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2D2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A9E
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A9E#FFFFFF#000000##FFFFFF
##2D2A9E1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d2a9e;
/* rgb */ color: rgb(45, 42, 158);
/* oklch */ color: oklch(37.7% 0.180 274.6);
Tailwind
colors: {
  custom: {
    50: '#7765bc',
    500: '#2d2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a9e;
$custom-light: #7765bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a9e",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 241.552,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37727,
    "c": 0.17989,
    "h": 274.6
  },
  "luminance": 0.04682
}

Semantic roles & 50–950 ramp

primary
#2D2A9E
secondary
#BCBE66
accent
#E147DD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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