#2C2DBA#2C2DBA

#2C2DBA is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.1% C 0.212 H 271.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2C2DBA
RGBrgb(44, 45, 186)
HSLhsl(240, 62%, 45%)
HSVhsv(240, 76%, 73%)
CMYKcmyk(76.3%, 75.8%, 0%, 27.1%)
CIE-LABlab(29.30, 47.19, -73.07)
CIE-LCHlch(29.30, 86.98, 302.85°)
OKLaboklab(41.07% 0.0068 -0.2115)
OKLCHoklch(41.07% 0.212 271.8)
XYZxyz(10.8370, 5.9562, 47.0234)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2DBA #BAB92C
analogous
#2C74BA #2C2DBA #722CBA
triadic
#2C2DBA #BA2C2D #2DBA2C
tetradic
#2C2DBA #BA2C74 #BAB92C #2CBA72
square
#2C2DBA #BA2C74 #BAB92C #2CBA72
split-complementary
#2C2DBA #BA722C #74BA2C
monochromatic
#151557 #202189 #2C2DBA #4E4FD5 #8080E1

Accessibility & contrast

On white

9.58
#2C2DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2C2DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2DBA
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2DBA#FFFFFF#000000##FFFFFF
##2C2DBA1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#003EB8
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2c2dba;
/* rgb */ color: rgb(44, 45, 186);
/* oklch */ color: oklch(41.1% 0.212 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d68d0',
    500: '#2c2dba',
    950: '#000000',
  },
}
SCSS
$custom: #2c2dba;
$custom-light: #7d68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2dba",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 239.577,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41067,
    "c": 0.21163,
    "h": 271.8
  },
  "luminance": 0.05957
}

Semantic roles & 50–950 ramp

primary
#2C2DBA
secondary
#CAC978
accent
#E443E5
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2C2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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