#2D2A71#2D2A71

#2D2A71 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.4% C 0.119 H 279.7°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2D2A71
RGBrgb(45, 42, 113)
HSLhsl(243, 46%, 30%)
HSVhsv(243, 63%, 44%)
CMYKcmyk(60.2%, 62.8%, 0%, 55.7%)
CIE-LABlab(21.60, 23.89, -40.75)
CIE-LCHlch(21.60, 47.24, 300.38°)
OKLaboklab(33.39% 0.02 -0.117)
OKLCHoklch(33.39% 0.119 279.7)
XYZxyz(4.8898, 3.4057, 16.0193)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A71 #6E712A
analogous
#2A4A71 #2D2A71 #502A71
triadic
#2D2A71 #712D2A #2A712D
tetradic
#2D2A71 #712A4A #6E712A #2A7150
square
#2D2A71 #712A4A #6E712A #2A7150
split-complementary
#2D2A71 #71502A #4A712A
monochromatic
#090918 #1B1944 #2D2A71 #3F3B9E #5A55C0

Accessibility & contrast

On white

12.49
#2D2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2D2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A71
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A71#FFFFFF#000000##FFFFFF
##2D2A711.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#053B49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2a71;
/* rgb */ color: rgb(45, 42, 113);
/* oklch */ color: oklch(33.4% 0.119 279.7);
Tailwind
colors: {
  custom: {
    50: '#6d639a',
    500: '#2d2a71',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a71;
$custom-light: #6d639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a71",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 242.535,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33392,
    "c": 0.11872,
    "h": 279.7
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#2D2A71
secondary
#A0A354
accent
#D552D0
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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