#2D2A82#2D2A82

#2D2A82 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.143 H 277.5°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2D2A82
RGBrgb(45, 42, 130)
HSLhsl(242, 51%, 34%)
HSVhsv(242, 68%, 51%)
CMYKcmyk(65.4%, 67.7%, 0%, 49%)
CIE-LABlab(23.08, 29.93, -49.15)
CIE-LCHlch(23.08, 57.55, 301.34°)
OKLaboklab(34.94% 0.0187 -0.1417)
OKLCHoklch(34.94% 0.143 277.5)
XYZxyz(5.9381, 3.8250, 21.5401)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A82 #7F822A
analogous
#2A5382 #2D2A82 #592A82
triadic
#2D2A82 #822D2A #2A822D
tetradic
#2D2A82 #822A53 #7F822A #2A8259
square
#2D2A82 #822A53 #7F822A #2A8259
split-complementary
#2D2A82 #82592A #53822A
monochromatic
#0D0C25 #1D1B54 #2D2A82 #3D39B0 #605CCA

Accessibility & contrast

On white

11.90
#2D2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A82
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A82#FFFFFF#000000##FFFFFF
##2D2A821.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2a82;
/* rgb */ color: rgb(45, 42, 130);
/* oklch */ color: oklch(34.9% 0.143 277.5);
Tailwind
colors: {
  custom: {
    50: '#7164a7',
    500: '#2d2a82',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a82;
$custom-light: #7164a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a82",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 242.045,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34939,
    "c": 0.14291,
    "h": 277.5
  },
  "luminance": 0.03826
}

Semantic roles & 50–950 ramp

primary
#2D2A82
secondary
#ADB058
accent
#DB4DD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #2D2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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