#2D2971#2D2971

#2D2971 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.120 H 280.1°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2D2971
RGBrgb(45, 41, 113)
HSLhsl(243, 47%, 30%)
HSVhsv(243, 64%, 44%)
CMYKcmyk(60.2%, 63.7%, 0%, 55.7%)
CIE-LABlab(21.34, 24.56, -41.18)
CIE-LCHlch(21.34, 47.95, 300.82°)
OKLaboklab(33.2% 0.0211 -0.1183)
OKLCHoklch(33.2% 0.12 280.1)
XYZxyz(4.8548, 3.3357, 16.0076)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2971 #6D7129
analogous
#294971 #2D2971 #512971
triadic
#2D2971 #712D29 #29712D
tetradic
#2D2971 #712949 #6D7129 #297151
square
#2D2971 #712949 #6D7129 #297151
split-complementary
#2D2971 #715129 #497129
monochromatic
#090817 #1B1944 #2D2971 #3F399E #5A54C1

Accessibility & contrast

On white

12.60
#2D2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2971
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2971#FFFFFF#000000##FFFFFF
##2D29711.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#063A48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2971;
/* rgb */ color: rgb(45, 41, 113);
/* oklch */ color: oklch(33.2% 0.120 280.1);
Tailwind
colors: {
  custom: {
    50: '#6d639a',
    500: '#2d2971',
    950: '#000000',
  },
}
SCSS
$custom: #2d2971;
$custom-light: #6d639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2971",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 243.333,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33201,
    "c": 0.12014,
    "h": 280.1
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#2D2971
secondary
#9FA353
accent
#D651CF
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2971

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

Preview Lab → · Contrast checker → · Palette generator →

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