#2C227E#2C227E

#2C227E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.147 H 279.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2C227E
RGBrgb(44, 34, 126)
HSLhsl(247, 58%, 31%)
HSVhsv(247, 73%, 49%)
CMYKcmyk(65.1%, 73%, 0%, 50.6%)
CIE-LABlab(20.77, 33.42, -50.41)
CIE-LCHlch(20.77, 60.49, 303.54°)
OKLaboklab(33.14% 0.0245 -0.1454)
OKLCHoklch(33.14% 0.147 279.6)
XYZxyz(5.3754, 3.1855, 20.0662)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C227E #747E22
analogous
#22467E #2C227E #5A227E
triadic
#2C227E #7E2C22 #227E2C
tetradic
#2C227E #7E2246 #747E22 #227E5A
square
#2C227E #7E2246 #747E22 #227E5A
split-complementary
#2C227E #7E5A22 #467E22
monochromatic
#0A081E #1B154E #2C227E #3D2FAE #5A4CCF

Accessibility & contrast

On white

12.83
#2C227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2C227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C227E
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C227E#FFFFFF#000000##FFFFFF
##2C227E1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c227e;
/* rgb */ color: rgb(44, 34, 126);
/* oklch */ color: oklch(33.1% 0.147 279.6);
Tailwind
colors: {
  custom: {
    50: '#705ea4',
    500: '#2c227e',
    950: '#000000',
  },
}
SCSS
$custom: #2c227e;
$custom-light: #705ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c227e",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 246.522,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33135,
    "c": 0.14746,
    "h": 279.6
  },
  "luminance": 0.03186
}

Semantic roles & 50–950 ramp

primary
#2C227E
secondary
#A6B14B
accent
#E147D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C227E

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

Preview Lab → · Contrast checker → · Palette generator →

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