#2D2B81#2D2B81

#2D2B81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.140 H 277.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2D2B81
RGBrgb(45, 43, 129)
HSLhsl(241, 50%, 34%)
HSVhsv(241, 67%, 51%)
CMYKcmyk(65.1%, 66.7%, 0%, 49.4%)
CIE-LABlab(23.24, 28.93, -48.27)
CIE-LCHlch(23.24, 56.27, 300.93°)
OKLaboklab(35.02% 0.0179 -0.1391)
OKLCHoklch(35.02% 0.14 277.3)
XYZxyz(5.9072, 3.8701, 21.2003)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2B81 #7F812B
analogous
#2B5481 #2D2B81 #582B81
triadic
#2D2B81 #812D2B #2B812D
tetradic
#2D2B81 #812B54 #7F812B #2B8158
square
#2D2B81 #812B54 #7F812B #2B8158
split-complementary
#2D2B81 #81582B #54812B
monochromatic
#0D0C25 #1D1C53 #2D2B81 #3D3AAF #605DC9

Accessibility & contrast

On white

11.84
#2D2B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D2B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2B81
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2B81#FFFFFF#000000##FFFFFF
##2D2B811.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2b81;
/* rgb */ color: rgb(45, 43, 129);
/* oklch */ color: oklch(35.0% 0.140 277.3);
Tailwind
colors: {
  custom: {
    50: '#7165a6',
    500: '#2d2b81',
    950: '#000000',
  },
}
SCSS
$custom: #2d2b81;
$custom-light: #7165a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2b81",
  "rgb": {
    "r": 45,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 241.395,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35023,
    "c": 0.14025,
    "h": 277.3
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#2D2B81
secondary
#ADAF59
accent
#DA4ED6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2D2B81

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

Preview Lab → · Contrast checker → · Palette generator →

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