#2C2272#2C2272

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

Color values

HEX#2C2272
RGBrgb(44, 34, 114)
HSLhsl(248, 54%, 29%)
HSVhsv(248, 70%, 45%)
CMYKcmyk(61.4%, 70.2%, 0%, 55.3%)
CIE-LABlab(19.61, 29.32, -44.64)
CIE-LCHlch(19.61, 53.41, 303.30°)
OKLaboklab(31.95% 0.0265 -0.1285)
OKLCHoklch(31.95% 0.131 281.7)
XYZxyz(4.6470, 2.8941, 16.2301)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2272 #687222
analogous
#224072 #2C2272 #542272
triadic
#2C2272 #722C22 #22722C
tetradic
#2C2272 #722240 #687222 #227254
square
#2C2272 #722240 #687222 #227254
split-complementary
#2C2272 #725422 #407222
monochromatic
#090718 #1A1443 #2C2272 #3E30A1 #5746C8

Accessibility & contrast

On white

13.30
#2C2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2C2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2272
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2272#FFFFFF#000000##FFFFFF
##2C22721.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#013747
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c2272;
/* rgb */ color: rgb(44, 34, 114);
/* oklch */ color: oklch(31.9% 0.131 281.7);
Tailwind
colors: {
  custom: {
    50: '#6e5e9b',
    500: '#2c2272',
    950: '#000000',
  },
}
SCSS
$custom: #2c2272;
$custom-light: #6e5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2272",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 247.5,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3195,
    "c": 0.13121,
    "h": 281.7
  },
  "luminance": 0.02894
}

Semantic roles & 50–950 ramp

primary
#2C2272
secondary
#9AA54B
accent
#DD4ACB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2C2272

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

Preview Lab → · Contrast checker → · Palette generator →

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