#2D2A7A#2D2A7A

#2D2A7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.132 H 278.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2D2A7A
RGBrgb(45, 42, 122)
HSLhsl(242, 49%, 32%)
HSVhsv(242, 66%, 48%)
CMYKcmyk(63.1%, 65.6%, 0%, 52.2%)
CIE-LABlab(22.37, 27.09, -45.26)
CIE-LCHlch(22.37, 52.75, 300.91°)
OKLaboklab(34.2% 0.0195 -0.1303)
OKLCHoklch(34.2% 0.132 278.5)
XYZxyz(5.4219, 3.6186, 18.8213)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A7A #777A2A
analogous
#2A4F7A #2D2A7A #552A7A
triadic
#2D2A7A #7A2D2A #2A7A2D
tetradic
#2D2A7A #7A2A4F #777A2A #2A7A55
square
#2D2A7A #7A2A4F #777A2A #2A7A55
split-complementary
#2D2A7A #7A552A #4F7A2A
monochromatic
#0B0B1F #1C1A4C #2D2A7A #3E3AA8 #5D59C6

Accessibility & contrast

On white

12.18
#2D2A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2D2A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A7A
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A7A#FFFFFF#000000##FFFFFF
##2D2A7A1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d2a7a;
/* rgb */ color: rgb(45, 42, 122);
/* oklch */ color: oklch(34.2% 0.132 278.5);
Tailwind
colors: {
  custom: {
    50: '#6f64a1',
    500: '#2d2a7a',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a7a;
$custom-light: #6f64a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a7a",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 242.25,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34195,
    "c": 0.13172,
    "h": 278.5
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#2D2A7A
secondary
#A8AB55
accent
#D84FD3
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D2A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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