#2D2B71#2D2B71

#2D2B71 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.6% C 0.117 H 279.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2D2B71
RGBrgb(45, 43, 113)
HSLhsl(242, 45%, 31%)
HSVhsv(242, 62%, 44%)
CMYKcmyk(60.2%, 61.9%, 0%, 55.7%)
CIE-LABlab(21.86, 23.21, -40.33)
CIE-LCHlch(21.86, 46.53, 299.92°)
OKLaboklab(33.59% 0.0189 -0.1158)
OKLCHoklch(33.59% 0.117 279.3)
XYZxyz(4.9258, 3.4776, 16.0313)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2B71 #6F712B
analogous
#2B4C71 #2D2B71 #502B71
triadic
#2D2B71 #712D2B #2B712D
tetradic
#2D2B71 #712B4C #6F712B #2B7150
square
#2D2B71 #712B4C #6F712B #2B7150
split-complementary
#2D2B71 #71502B #4C712B
monochromatic
#0A0918 #1B1A45 #2D2B71 #3F3C9D #5A57BF

Accessibility & contrast

On white

12.38
#2D2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2D2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2B71
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2B71#FFFFFF#000000##FFFFFF
##2D2B711.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#053C49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2b71;
/* rgb */ color: rgb(45, 43, 113);
/* oklch */ color: oklch(33.6% 0.117 279.3);
Tailwind
colors: {
  custom: {
    50: '#6d649a',
    500: '#2d2b71',
    950: '#000000',
  },
}
SCSS
$custom: #2d2b71;
$custom-light: #6d649a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2b71",
  "rgb": {
    "r": 45,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 241.714,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33586,
    "c": 0.1173,
    "h": 279.3
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#2D2B71
secondary
#A1A355
accent
#D553D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2D2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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