#2C227C#2C227C

#2C227C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.145 H 279.9°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2C227C
RGBrgb(44, 34, 124)
HSLhsl(247, 57%, 31%)
HSVhsv(247, 73%, 49%)
CMYKcmyk(64.5%, 72.6%, 0%, 51.4%)
CIE-LABlab(20.57, 32.74, -49.47)
CIE-LCHlch(20.57, 59.32, 303.50°)
OKLaboklab(32.93% 0.0249 -0.1427)
OKLCHoklch(32.93% 0.145 279.9)
XYZxyz(5.2477, 3.1344, 19.3933)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C227C #727C22
analogous
#22457C #2C227C #59227C
triadic
#2C227C #7C2C22 #227C2C
tetradic
#2C227C #7C2245 #727C22 #227C59
square
#2C227C #7C2245 #727C22 #227C59
split-complementary
#2C227C #7C5922 #457C22
monochromatic
#0A081C #1B154C #2C227C #3D2FAC #594BCE

Accessibility & contrast

On white

12.91
#2C227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C227C
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C227C#FFFFFF#000000##FFFFFF
##2C227C1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c227c;
/* rgb */ color: rgb(44, 34, 124);
/* oklch */ color: oklch(32.9% 0.145 279.9);
Tailwind
colors: {
  custom: {
    50: '#705ea3',
    500: '#2c227c',
    950: '#000000',
  },
}
SCSS
$custom: #2c227c;
$custom-light: #705ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c227c",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 246.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32933,
    "c": 0.14481,
    "h": 279.9
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#2C227C
secondary
#A4AF4B
accent
#E048CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C227C

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

Preview Lab → · Contrast checker → · Palette generator →

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