#2C2271#2C2271

#2C2271 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.130 H 281.9°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2C2271
RGBrgb(44, 34, 113)
HSLhsl(248, 54%, 29%)
HSVhsv(248, 70%, 44%)
CMYKcmyk(61.1%, 69.9%, 0%, 55.7%)
CIE-LABlab(19.52, 28.97, -44.15)
CIE-LCHlch(19.52, 52.80, 303.28°)
OKLaboklab(31.85% 0.0267 -0.1271)
OKLCHoklch(31.85% 0.13 281.9)
XYZxyz(4.5904, 2.8715, 15.9319)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2271 #677122
analogous
#224071 #2C2271 #542271
triadic
#2C2271 #712C22 #22712C
tetradic
#2C2271 #712240 #677122 #227154
square
#2C2271 #712240 #677122 #227154
split-complementary
#2C2271 #715422 #407122
monochromatic
#090718 #1A1442 #2C2271 #3E30A0 #5646C7

Accessibility & contrast

On white

13.34
#2C2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2271
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2271#FFFFFF#000000##FFFFFF
##2C22711.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#033646
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c2271;
/* rgb */ color: rgb(44, 34, 113);
/* oklch */ color: oklch(31.9% 0.130 281.9);
Tailwind
colors: {
  custom: {
    50: '#6e5e9b',
    500: '#2c2271',
    950: '#000000',
  },
}
SCSS
$custom: #2c2271;
$custom-light: #6e5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2271",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 247.595,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31854,
    "c": 0.12983,
    "h": 281.9
  },
  "luminance": 0.02872
}

Semantic roles & 50–950 ramp

primary
#2C2271
secondary
#99A44A
accent
#DD4BCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2C2271

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

Preview Lab → · Contrast checker → · Palette generator →

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