#2C2297#2C2297

#2C2297 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.179 H 276.1°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2C2297
RGBrgb(44, 34, 151)
HSLhsl(245, 63%, 36%)
HSVhsv(245, 77%, 59%)
CMYKcmyk(70.9%, 77.5%, 0%, 40.8%)
CIE-LABlab(23.38, 41.76, -61.73)
CIE-LCHlch(23.38, 74.53, 304.08°)
OKLaboklab(35.77% 0.0191 -0.1784)
OKLCHoklch(35.77% 0.179 276.1)
XYZxyz(7.1948, 3.9132, 29.6483)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2297 #8D9722
analogous
#225397 #2C2297 #672297
triadic
#2C2297 #972C22 #22972C
tetradic
#2C2297 #972253 #8D9722 #229767
square
#2C2297 #972253 #8D9722 #229767
split-complementary
#2C2297 #976722 #539722
monochromatic
#0F0C33 #1D1765 #2C2297 #3B2DC9 #655ADA

Accessibility & contrast

On white

11.78
#2C2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2C2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2297
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2297#FFFFFF#000000##FFFFFF
##2C22971.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c2297;
/* rgb */ color: rgb(44, 34, 151);
/* oklch */ color: oklch(35.8% 0.179 276.1);
Tailwind
colors: {
  custom: {
    50: '#7660b7',
    500: '#2c2297',
    950: '#000000',
  },
}
SCSS
$custom: #2c2297;
$custom-light: #7660b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2297",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 245.128,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35769,
    "c": 0.17946,
    "h": 276.1
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#2C2297
secondary
#B5BE57
accent
#E642D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2C2297

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

Preview Lab → · Contrast checker → · Palette generator →

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