#2C2A97#2C2A97

#2C2A97 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.171 H 274.8°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2C2A97
RGBrgb(44, 42, 151)
HSLhsl(241, 56%, 38%)
HSVhsv(241, 72%, 59%)
CMYKcmyk(70.9%, 72.2%, 0%, 40.8%)
CIE-LABlab(25.03, 37.14, -59.01)
CIE-LCHlch(25.03, 69.73, 302.18°)
OKLaboklab(36.94% 0.0145 -0.1706)
OKLCHoklch(36.94% 0.171 274.8)
XYZxyz(7.4507, 4.4251, 29.7336)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A97 #95972A
analogous
#2A5E97 #2C2A97 #622A97
triadic
#2C2A97 #972C2A #2A972C
tetradic
#2C2A97 #972A5E #95972A #2A9762
square
#2C2A97 #972A5E #95972A #2A9762
split-complementary
#2C2A97 #97622A #5E972A
monochromatic
#100F37 #1E1D67 #2C2A97 #3A37C7 #6967D5

Accessibility & contrast

On white

11.14
#2C2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2C2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A97
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A97#FFFFFF#000000##FFFFFF
##2C2A971.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.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: #2c2a97;
/* rgb */ color: rgb(44, 42, 151);
/* oklch */ color: oklch(36.9% 0.171 274.8);
Tailwind
colors: {
  custom: {
    50: '#7565b7',
    500: '#2c2a97',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a97;
$custom-light: #7565b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a97",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 241.101,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36939,
    "c": 0.17119,
    "h": 274.8
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#2C2A97
secondary
#B9BB62
accent
#E048DD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2C2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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