#2D2B72#2D2B72

#2D2B72 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.7% C 0.119 H 279.2°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2D2B72
RGBrgb(45, 43, 114)
HSLhsl(242, 45%, 31%)
HSVhsv(242, 62%, 45%)
CMYKcmyk(60.5%, 62.3%, 0%, 55.3%)
CIE-LABlab(21.95, 23.57, -40.84)
CIE-LCHlch(21.95, 47.15, 299.99°)
OKLaboklab(33.67% 0.0189 -0.1173)
OKLCHoklch(33.67% 0.119 279.2)
XYZxyz(4.9824, 3.5002, 16.3294)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2B72 #70722B
analogous
#2B4C72 #2D2B72 #502B72
triadic
#2D2B72 #722D2B #2B722D
tetradic
#2D2B72 #722B4C #70722B #2B7250
square
#2D2B72 #722B4C #70722B #2B7250
split-complementary
#2D2B72 #72502B #4C722B
monochromatic
#0A0919 #1B1A46 #2D2B72 #3F3C9E #5A58C0

Accessibility & contrast

On white

12.35
#2D2B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2B72
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2B72#FFFFFF#000000##FFFFFF
##2D2B721.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#033C4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d2b72;
/* rgb */ color: rgb(45, 43, 114);
/* oklch */ color: oklch(33.7% 0.119 279.2);
Tailwind
colors: {
  custom: {
    50: '#6e649b',
    500: '#2d2b72',
    950: '#000000',
  },
}
SCSS
$custom: #2d2b72;
$custom-light: #6e649b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2b72",
  "rgb": {
    "r": 45,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 241.69,
    "s": 45.223,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33672,
    "c": 0.11878,
    "h": 279.2
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2B72

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

Preview Lab → · Contrast checker → · Palette generator →

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