#2D2A72#2D2A72

#2D2A72 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.120 H 279.6°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2D2A72
RGBrgb(45, 42, 114)
HSLhsl(243, 46%, 31%)
HSVhsv(243, 63%, 45%)
CMYKcmyk(60.5%, 63.2%, 0%, 55.3%)
CIE-LABlab(21.68, 24.25, -41.26)
CIE-LCHlch(21.68, 47.86, 300.44°)
OKLaboklab(33.48% 0.02 -0.1185)
OKLCHoklch(33.48% 0.12 279.6)
XYZxyz(4.9465, 3.4284, 16.3174)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A72 #6F722A
analogous
#2A4B72 #2D2A72 #512A72
triadic
#2D2A72 #722D2A #2A722D
tetradic
#2D2A72 #722A4B #6F722A #2A7251
square
#2D2A72 #722A4B #6F722A #2A7251
split-complementary
#2D2A72 #72512A #4B722A
monochromatic
#0A0919 #1B1A45 #2D2A72 #3F3A9F #5A56C1

Accessibility & contrast

On white

12.46
#2D2A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D2A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A72
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A72#FFFFFF#000000##FFFFFF
##2D2A721.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#043B49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2a72;
/* rgb */ color: rgb(45, 42, 114);
/* oklch */ color: oklch(33.5% 0.120 279.6);
Tailwind
colors: {
  custom: {
    50: '#6e639b',
    500: '#2d2a72',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a72;
$custom-light: #6e639b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a72",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 242.5,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33479,
    "c": 0.12019,
    "h": 279.6
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#2D2A72
secondary
#A1A454
accent
#D652D0
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2A72

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

Preview Lab → · Contrast checker → · Palette generator →

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