#2C2287#2C2287

#2C2287 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.159 H 278.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2C2287
RGBrgb(44, 34, 135)
HSLhsl(246, 60%, 33%)
HSVhsv(246, 75%, 53%)
CMYKcmyk(67.4%, 74.8%, 0%, 47.1%)
CIE-LABlab(21.68, 36.46, -54.59)
CIE-LCHlch(21.68, 65.65, 303.74°)
OKLaboklab(34.06% 0.0227 -0.1576)
OKLCHoklch(34.06% 0.159 278.2)
XYZxyz(5.9825, 3.4283, 23.2634)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2287 #7D8722
analogous
#224A87 #2C2287 #5E2287
triadic
#2C2287 #872C22 #22872C
tetradic
#2C2287 #87224A #7D8722 #22875E
square
#2C2287 #87224A #7D8722 #22875E
split-complementary
#2C2287 #875E22 #4A8722
monochromatic
#0C0925 #1C1656 #2C2287 #3C2EB8 #5D50D3

Accessibility & contrast

On white

12.46
#2C2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2287
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2287#FFFFFF#000000##FFFFFF
##2C22871.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c2287;
/* rgb */ color: rgb(44, 34, 135);
/* oklch */ color: oklch(34.1% 0.159 278.2);
Tailwind
colors: {
  custom: {
    50: '#725fab',
    500: '#2c2287',
    950: '#000000',
  },
}
SCSS
$custom: #2c2287;
$custom-light: #725fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2287",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 245.941,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34061,
    "c": 0.15925,
    "h": 278.2
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C2287

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

Preview Lab → · Contrast checker → · Palette generator →

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