#2C227D#2C227D

#2C227D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.146 H 279.7°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2C227D
RGBrgb(44, 34, 125)
HSLhsl(247, 57%, 31%)
HSVhsv(247, 73%, 49%)
CMYKcmyk(64.8%, 72.8%, 0%, 51%)
CIE-LABlab(20.67, 33.08, -49.94)
CIE-LCHlch(20.67, 59.91, 303.52°)
OKLaboklab(33.03% 0.0247 -0.144)
OKLCHoklch(33.03% 0.146 279.7)
XYZxyz(5.3112, 3.1598, 19.7281)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C227D #737D22
analogous
#22457D #2C227D #59227D
triadic
#2C227D #7D2C22 #227D2C
tetradic
#2C227D #7D2245 #737D22 #227D59
square
#2C227D #7D2245 #737D22 #227D59
split-complementary
#2C227D #7D5922 #457D22
monochromatic
#0A081D #1B154D #2C227D #3D2FAD #5A4BCE

Accessibility & contrast

On white

12.87
#2C227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2C227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C227D
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C227D#FFFFFF#000000##FFFFFF
##2C227D1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c227d;
/* rgb */ color: rgb(44, 34, 125);
/* oklch */ color: oklch(33.0% 0.146 279.7);
Tailwind
colors: {
  custom: {
    50: '#705ea4',
    500: '#2c227d',
    950: '#000000',
  },
}
SCSS
$custom: #2c227d;
$custom-light: #705ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c227d",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 246.593,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33034,
    "c": 0.14614,
    "h": 279.7
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#2C227D
secondary
#A5B04B
accent
#E047D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C227D

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

Preview Lab → · Contrast checker → · Palette generator →

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