#2D2997#2D2997

#2D2997 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.172 H 275.5°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2D2997
RGBrgb(45, 41, 151)
HSLhsl(242, 57%, 38%)
HSVhsv(242, 73%, 59%)
CMYKcmyk(70.2%, 72.8%, 0%, 40.8%)
CIE-LABlab(24.88, 37.85, -59.26)
CIE-LCHlch(24.88, 70.32, 302.57°)
OKLaboklab(36.85% 0.0164 -0.1713)
OKLCHoklch(36.85% 0.172 275.5)
XYZxyz(7.4592, 4.3774, 29.7240)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2997 #939729
analogous
#295C97 #2D2997 #642997
triadic
#2D2997 #972D29 #29972D
tetradic
#2D2997 #97295C #939729 #299764
square
#2D2997 #97295C #939729 #299764
split-complementary
#2D2997 #976429 #5C9729
monochromatic
#100F37 #1F1C67 #2D2997 #3B36C7 #6965D5

Accessibility & contrast

On white

11.20
#2D2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2D2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2997
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2997#FFFFFF#000000##FFFFFF
##2D29971.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2997;
/* rgb */ color: rgb(45, 41, 151);
/* oklch */ color: oklch(36.9% 0.172 275.5);
Tailwind
colors: {
  custom: {
    50: '#7664b7',
    500: '#2d2997',
    950: '#000000',
  },
}
SCSS
$custom: #2d2997;
$custom-light: #7664b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2997",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 242.182,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36851,
    "c": 0.17203,
    "h": 275.5
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#2D2997
secondary
#B8BB61
accent
#E147DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2D2997

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

Preview Lab → · Contrast checker → · Palette generator →

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