#2D2B98#2D2B98

#2D2B98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.171 H 275.0°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2D2B98
RGBrgb(45, 43, 152)
HSLhsl(241, 56%, 38%)
HSVhsv(241, 72%, 60%)
CMYKcmyk(70.4%, 71.7%, 0%, 40.4%)
CIE-LABlab(25.42, 36.99, -58.99)
CIE-LCHlch(25.42, 69.63, 302.09°)
OKLaboklab(37.27% 0.0149 -0.1705)
OKLCHoklch(37.27% 0.171 275)
XYZxyz(7.6117, 4.5519, 30.1772)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2B98 #96982B
analogous
#2B5F98 #2D2B98 #632B98
triadic
#2D2B98 #982D2B #2B982D
tetradic
#2D2B98 #982B5F #96982B #2B9863
square
#2D2B98 #982B5F #96982B #2B9863
split-complementary
#2D2B98 #98632B #5F982B
monochromatic
#111039 #1F1E68 #2D2B98 #3C39C7 #6B69D5

Accessibility & contrast

On white

10.99
#2D2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2D2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2B98
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2B98#FFFFFF#000000##FFFFFF
##2D2B981.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d2b98;
/* rgb */ color: rgb(45, 43, 152);
/* oklch */ color: oklch(37.3% 0.171 275.0);
Tailwind
colors: {
  custom: {
    50: '#7665b7',
    500: '#2d2b98',
    950: '#000000',
  },
}
SCSS
$custom: #2d2b98;
$custom-light: #7665b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2b98",
  "rgb": {
    "r": 45,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 241.101,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37265,
    "c": 0.17112,
    "h": 275
  },
  "luminance": 0.04553
}

Semantic roles & 50–950 ramp

primary
#2D2B98
secondary
#B9BB64
accent
#DF49DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2D2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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