#2C2997#2C2997

#2C2997 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.172 H 275.0°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2C2997
RGBrgb(44, 41, 151)
HSLhsl(242, 57%, 38%)
HSVhsv(242, 73%, 59%)
CMYKcmyk(70.9%, 72.8%, 0%, 40.8%)
CIE-LABlab(24.81, 37.74, -59.37)
CIE-LCHlch(24.81, 70.35, 302.44°)
OKLaboklab(36.78% 0.0151 -0.1716)
OKLCHoklch(36.78% 0.172 275)
XYZxyz(7.4157, 4.3550, 29.7219)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2997 #949729
analogous
#295D97 #2C2997 #632997
triadic
#2C2997 #972C29 #29972C
tetradic
#2C2997 #97295D #949729 #299763
square
#2C2997 #97295D #949729 #299763
split-complementary
#2C2997 #976329 #5D9729
monochromatic
#100F37 #1E1C67 #2C2997 #3A36C7 #6865D5

Accessibility & contrast

On white

11.22
#2C2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2C2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2997
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2997#FFFFFF#000000##FFFFFF
##2C29971.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c2997;
/* rgb */ color: rgb(44, 41, 151);
/* oklch */ color: oklch(36.8% 0.172 275.0);
Tailwind
colors: {
  custom: {
    50: '#7564b7',
    500: '#2c2997',
    950: '#000000',
  },
}
SCSS
$custom: #2c2997;
$custom-light: #7564b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2997",
  "rgb": {
    "r": 44,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 241.636,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36783,
    "c": 0.17228,
    "h": 275
  },
  "luminance": 0.04356
}

Semantic roles & 50–950 ramp

primary
#2C2997
secondary
#B9BB61
accent
#E147DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2C2997

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

Preview Lab → · Contrast checker → · Palette generator →

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