#2C2C8A#2C2C8A

#2C2C8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.152 H 275.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2C2C8A
RGBrgb(44, 44, 138)
HSLhsl(240, 52%, 36%)
HSVhsv(240, 68%, 54%)
CMYKcmyk(68.1%, 68.1%, 0%, 45.9%)
CIE-LABlab(24.23, 31.33, -52.29)
CIE-LCHlch(24.23, 60.96, 300.93°)
OKLaboklab(35.98% 0.0149 -0.1509)
OKLCHoklch(35.98% 0.152 275.6)
XYZxyz(6.5253, 4.1712, 24.5011)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2C8A #8A8A2C
analogous
#2C5B8A #2C2C8A #5B2C8A
triadic
#2C2C8A #8A2C2C #2C8A2C
tetradic
#2C2C8A #8A2C5B #8A8A2C #2C8A5B
square
#2C2C8A #8A2C5B #8A8A2C #2C8A5B
split-complementary
#2C2C8A #8A5B2C #5B8A2C
monochromatic
#0E0E2D #1D1D5C #2C2C8A #3B3BB8 #6363CD

Accessibility & contrast

On white

11.45
#2C2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2C2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2C8A
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2C8A#FFFFFF#000000##FFFFFF
##2C2C8A1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c2c8a;
/* rgb */ color: rgb(44, 44, 138);
/* oklch */ color: oklch(36.0% 0.152 275.6);
Tailwind
colors: {
  custom: {
    50: '#7265ad',
    500: '#2c2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c2c8a;
$custom-light: #7265ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2c8a",
  "rgb": {
    "r": 44,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 240,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35979,
    "c": 0.15163,
    "h": 275.6
  },
  "luminance": 0.04172
}

Semantic roles & 50–950 ramp

primary
#2C2C8A
secondary
#B4B45E
accent
#DB4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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