#2D2C98#2D2C98

#2D2C98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.170 H 274.8°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2D2C98
RGBrgb(45, 44, 152)
HSLhsl(241, 55%, 38%)
HSVhsv(241, 71%, 60%)
CMYKcmyk(70.4%, 71.1%, 0%, 40.4%)
CIE-LABlab(25.64, 36.38, -58.62)
CIE-LCHlch(25.64, 68.99, 301.82°)
OKLaboklab(37.43% 0.0143 -0.1694)
OKLCHoklch(37.43% 0.17 274.8)
XYZxyz(7.6485, 4.6255, 30.1894)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2C98 #97982C
analogous
#2C6198 #2D2C98 #632C98
triadic
#2D2C98 #982D2C #2C982D
tetradic
#2D2C98 #982C61 #97982C #2C9863
square
#2D2C98 #982C61 #97982C #2C9863
split-complementary
#2D2C98 #98632C #61982C
monochromatic
#111139 #1F1E69 #2D2C98 #3C3BC6 #6B6AD4

Accessibility & contrast

On white

10.91
#2D2C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2D2C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2C98
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2C98#FFFFFF#000000##FFFFFF
##2D2C981.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d2c98;
/* rgb */ color: rgb(45, 44, 152);
/* oklch */ color: oklch(37.4% 0.170 274.8);
Tailwind
colors: {
  custom: {
    50: '#7666b7',
    500: '#2d2c98',
    950: '#000000',
  },
}
SCSS
$custom: #2d2c98;
$custom-light: #7666b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2c98",
  "rgb": {
    "r": 45,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 240.556,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37425,
    "c": 0.17001,
    "h": 274.8
  },
  "luminance": 0.04626
}

Semantic roles & 50–950 ramp

primary
#2D2C98
secondary
#BABB65
accent
#DE49DD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2D2C98

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

Preview Lab → · Contrast checker → · Palette generator →

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