#2C2BAB#2C2BAB

#2C2BAB is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.195 H 273.1°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#2C2BAB
RGBrgb(44, 43, 171)
HSLhsl(240, 60%, 42%)
HSVhsv(240, 75%, 67%)
CMYKcmyk(74.3%, 74.9%, 0%, 32.9%)
CIE-LABlab(27.30, 43.34, -67.42)
CIE-LCHlch(27.30, 80.15, 302.73°)
OKLaboklab(39.18% 0.0104 -0.1951)
OKLCHoklch(39.18% 0.195 273.1)
XYZxyz(9.2508, 5.2026, 39.0368)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2BAB #AAAB2B
analogous
#2B6AAB #2C2BAB #6C2BAB
triadic
#2C2BAB #AB2C2B #2BAB2C
tetradic
#2C2BAB #AB2B6A #AAAB2B #2BAB6C
square
#2C2BAB #AB2B6A #AAAB2B #2BAB6C
split-complementary
#2C2BAB #AB6C2B #6AAB2B
monochromatic
#131249 #1F1F7A #2C2BAB #4443D0 #7574DC

Accessibility & contrast

On white

10.29
#2C2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2C2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2BAB
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2BAB#FFFFFF#000000##FFFFFF
##2C2BAB1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c2bab;
/* rgb */ color: rgb(44, 43, 171);
/* oklch */ color: oklch(39.2% 0.195 273.1);
Tailwind
colors: {
  custom: {
    50: '#7a66c5',
    500: '#2c2bab',
    950: '#000000',
  },
}
SCSS
$custom: #2c2bab;
$custom-light: #7a66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2bab",
  "rgb": {
    "r": 44,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 240.469,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39178,
    "c": 0.19536,
    "h": 273.1
  },
  "luminance": 0.05204
}

Semantic roles & 50–950 ramp

primary
#2C2BAB
secondary
#C3C46E
accent
#E345E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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