#2C227A#2C227A

#2C227A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.142 H 280.2°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2C227A
RGBrgb(44, 34, 122)
HSLhsl(247, 56%, 31%)
HSVhsv(247, 72%, 48%)
CMYKcmyk(63.9%, 72.1%, 0%, 52.2%)
CIE-LABlab(20.38, 32.06, -48.52)
CIE-LCHlch(20.38, 58.15, 303.46°)
OKLaboklab(32.73% 0.0252 -0.1399)
OKLCHoklch(32.73% 0.142 280.2)
XYZxyz(5.1225, 3.0843, 18.7340)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C227A #707A22
analogous
#22447A #2C227A #58227A
triadic
#2C227A #7A2C22 #227A2C
tetradic
#2C227A #7A2244 #707A22 #227A58
square
#2C227A #7A2244 #707A22 #227A58
split-complementary
#2C227A #7A5822 #447A22
monochromatic
#09071A #1B154A #2C227A #3D2FAA #594ACD

Accessibility & contrast

On white

12.99
#2C227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2C227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C227A
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C227A#FFFFFF#000000##FFFFFF
##2C227A1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c227a;
/* rgb */ color: rgb(44, 34, 122);
/* oklch */ color: oklch(32.7% 0.142 280.2);
Tailwind
colors: {
  custom: {
    50: '#6f5ea1',
    500: '#2c227a',
    950: '#000000',
  },
}
SCSS
$custom: #2c227a;
$custom-light: #6f5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c227a",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 246.818,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32733,
    "c": 0.14212,
    "h": 280.2
  },
  "luminance": 0.03085
}

Semantic roles & 50–950 ramp

primary
#2C227A
secondary
#A2AD4B
accent
#E048CE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C227A

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

Preview Lab → · Contrast checker → · Palette generator →

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