#2D2A84#2D2A84

#2D2A84 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.146 H 277.3°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2D2A84
RGBrgb(45, 42, 132)
HSLhsl(242, 52%, 34%)
HSVhsv(242, 68%, 52%)
CMYKcmyk(65.9%, 68.2%, 0%, 48.2%)
CIE-LABlab(23.27, 30.64, -50.11)
CIE-LCHlch(23.27, 58.73, 301.44°)
OKLaboklab(35.13% 0.0185 -0.1445)
OKLCHoklch(35.13% 0.146 277.3)
XYZxyz(6.0737, 3.8793, 22.2540)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A84 #81842A
analogous
#2A5484 #2D2A84 #5A2A84
triadic
#2D2A84 #842D2A #2A842D
tetradic
#2D2A84 #842A54 #81842A #2A845A
square
#2D2A84 #842A54 #81842A #2A845A
split-complementary
#2D2A84 #845A2A #54842A
monochromatic
#0D0C27 #1D1B56 #2D2A84 #3D39B2 #615DCB

Accessibility & contrast

On white

11.82
#2D2A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D2A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A84
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A84#FFFFFF#000000##FFFFFF
##2D2A841.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003482
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2a84;
/* rgb */ color: rgb(45, 42, 132);
/* oklch */ color: oklch(35.1% 0.146 277.3);
Tailwind
colors: {
  custom: {
    50: '#7164a9',
    500: '#2d2a84',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a84;
$custom-light: #7164a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a84",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 242,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35129,
    "c": 0.14567,
    "h": 277.3
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#2D2A84
secondary
#AEB159
accent
#DB4DD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2D2A84

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

Preview Lab → · Contrast checker → · Palette generator →

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