#2C2976#2C2976

#2C2976 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.128 H 278.7°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2C2976
RGBrgb(44, 41, 118)
HSLhsl(242, 48%, 31%)
HSVhsv(242, 65%, 46%)
CMYKcmyk(62.7%, 65.3%, 0%, 53.7%)
CIE-LABlab(21.69, 26.16, -43.82)
CIE-LCHlch(21.69, 51.04, 300.83°)
OKLaboklab(33.57% 0.0194 -0.1261)
OKLCHoklch(33.57% 0.128 278.7)
XYZxyz(5.1006, 3.4290, 17.5291)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2976 #737629
analogous
#294C76 #2C2976 #522976
triadic
#2C2976 #762C29 #29762C
tetradic
#2C2976 #76294C #737629 #297652
square
#2C2976 #76294C #737629 #297652
split-complementary
#2C2976 #765229 #4C7629
monochromatic
#0A091B #1B1949 #2C2976 #3D39A3 #5A55C4

Accessibility & contrast

On white

12.46
#2C2976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C2976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2976
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2976#FFFFFF#000000##FFFFFF
##2C29761.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c2976;
/* rgb */ color: rgb(44, 41, 118);
/* oklch */ color: oklch(33.6% 0.128 278.7);
Tailwind
colors: {
  custom: {
    50: '#6e639e',
    500: '#2c2976',
    950: '#000000',
  },
}
SCSS
$custom: #2c2976;
$custom-light: #6e639e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2976",
  "rgb": {
    "r": 44,
    "g": 41,
    "b": 118
  },
  "hsl": {
    "h": 242.338,
    "s": 48.428,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33567,
    "c": 0.12757,
    "h": 278.7
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#2C2976
secondary
#A5A853
accent
#D850D3
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2C2976

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

Preview Lab → · Contrast checker → · Palette generator →

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