#2C2C97#2C2C97

#2C2C97 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.169 H 274.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#2C2C97
RGBrgb(44, 44, 151)
HSLhsl(240, 55%, 38%)
HSVhsv(240, 71%, 59%)
CMYKcmyk(70.9%, 70.9%, 0%, 40.8%)
CIE-LABlab(25.47, 35.91, -58.28)
CIE-LCHlch(25.47, 68.46, 301.64°)
OKLaboklab(37.26% 0.0132 -0.1684)
OKLCHoklch(37.26% 0.169 274.5)
XYZxyz(7.5234, 4.5705, 29.7579)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2C97 #97972C
analogous
#2C6197 #2C2C97 #612C97
triadic
#2C2C97 #972C2C #2C972C
tetradic
#2C2C97 #972C61 #97972C #2C9761
square
#2C2C97 #972C61 #97972C #2C9761
split-complementary
#2C2C97 #97612C #61972C
monochromatic
#101038 #1E1E68 #2C2C97 #3A3AC6 #6A6AD4

Accessibility & contrast

On white

10.97
#2C2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2C2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2C97
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2C97#FFFFFF#000000##FFFFFF
##2C2C971.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c2c97;
/* rgb */ color: rgb(44, 44, 151);
/* oklch */ color: oklch(37.3% 0.169 274.5);
Tailwind
colors: {
  custom: {
    50: '#7566b7',
    500: '#2c2c97',
    950: '#000000',
  },
}
SCSS
$custom: #2c2c97;
$custom-light: #7566b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2c97",
  "rgb": {
    "r": 44,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37258,
    "c": 0.16897,
    "h": 274.5
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#2C2C97
secondary
#BABA65
accent
#DE4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2C2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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