#2C2286#2C2286

#2C2286 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.158 H 278.3°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#2C2286
RGBrgb(44, 34, 134)
HSLhsl(246, 60%, 33%)
HSVhsv(246, 75%, 53%)
CMYKcmyk(67.2%, 74.6%, 0%, 47.5%)
CIE-LABlab(21.58, 36.13, -54.13)
CIE-LCHlch(21.58, 65.08, 303.72°)
OKLaboklab(33.96% 0.0229 -0.1563)
OKLCHoklch(33.96% 0.158 278.3)
XYZxyz(5.9124, 3.4003, 22.8944)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2286 #7C8622
analogous
#224A86 #2C2286 #5E2286
triadic
#2C2286 #862C22 #22862C
tetradic
#2C2286 #86224A #7C8622 #22865E
square
#2C2286 #86224A #7C8622 #22865E
split-complementary
#2C2286 #865E22 #4A8622
monochromatic
#0C0924 #1C1655 #2C2286 #3C2EB7 #5D50D3

Accessibility & contrast

On white

12.50
#2C2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2C2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2286
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2286#FFFFFF#000000##FFFFFF
##2C22861.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c2286;
/* rgb */ color: rgb(44, 34, 134);
/* oklch */ color: oklch(34.0% 0.158 278.3);
Tailwind
colors: {
  custom: {
    50: '#725faa',
    500: '#2c2286',
    950: '#000000',
  },
}
SCSS
$custom: #2c2286;
$custom-light: #725faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2286",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 246,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33956,
    "c": 0.15796,
    "h": 278.3
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#2C2286
secondary
#ACB64E
accent
#E345D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C2286

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

Preview Lab → · Contrast checker → · Palette generator →

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