#2D2A8E#2D2A8E

#2D2A8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.159 H 276.2°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2D2A8E
RGBrgb(45, 42, 142)
HSLhsl(242, 54%, 36%)
HSVhsv(242, 70%, 56%)
CMYKcmyk(68.3%, 70.4%, 0%, 44.3%)
CIE-LABlab(24.21, 34.14, -54.80)
CIE-LCHlch(24.21, 64.56, 301.93°)
OKLaboklab(36.1% 0.0172 -0.1582)
OKLCHoklch(36.1% 0.159 276.2)
XYZxyz(6.7910, 4.1662, 26.0322)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A8E #8B8E2A
analogous
#2A598E #2D2A8E #5F2A8E
triadic
#2D2A8E #8E2D2A #2A8E2D
tetradic
#2D2A8E #8E2A59 #8B8E2A #2A8E5F
square
#2D2A8E #8E2A59 #8B8E2A #2A8E5F
split-complementary
#2D2A8E #8E5F2A #598E2A
monochromatic
#0F0E30 #1E1C5F #2D2A8E #3C38BD #6562D1

Accessibility & contrast

On white

11.45
#2D2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2D2A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A8E
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A8E#FFFFFF#000000##FFFFFF
##2D2A8E1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2a8e;
/* rgb */ color: rgb(45, 42, 142);
/* oklch */ color: oklch(36.1% 0.159 276.2);
Tailwind
colors: {
  custom: {
    50: '#7464b0',
    500: '#2d2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a8e;
$custom-light: #7464b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a8e",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 241.8,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36102,
    "c": 0.15916,
    "h": 276.2
  },
  "luminance": 0.04167
}

Semantic roles & 50–950 ramp

primary
#2D2A8E
secondary
#B4B65D
accent
#DE4AD9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2D2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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