#2C2097#2C2097

#2C2097 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.181 H 276.4°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2C2097
RGBrgb(44, 32, 151)
HSLhsl(246, 65%, 36%)
HSVhsv(246, 79%, 59%)
CMYKcmyk(70.9%, 78.8%, 0%, 40.8%)
CIE-LABlab(23.01, 42.83, -62.35)
CIE-LCHlch(23.01, 75.65, 304.49°)
OKLaboklab(35.51% 0.0201 -0.1802)
OKLCHoklch(35.51% 0.181 276.4)
XYZxyz(7.1393, 3.8022, 29.6298)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2097 #8B9720
analogous
#205097 #2C2097 #672097
triadic
#2C2097 #972C20 #20972C
tetradic
#2C2097 #972050 #8B9720 #209767
square
#2C2097 #972050 #8B9720 #209767
split-complementary
#2C2097 #976720 #509720
monochromatic
#0F0B32 #1D1564 #2C2097 #3B2BC9 #6456DB

Accessibility & contrast

On white

11.93
#2C2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2C2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2097
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2097#FFFFFF#000000##FFFFFF
##2C20971.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c2097;
/* rgb */ color: rgb(44, 32, 151);
/* oklch */ color: oklch(35.5% 0.181 276.4);
Tailwind
colors: {
  custom: {
    50: '#765eb7',
    500: '#2c2097',
    950: '#000000',
  },
}
SCSS
$custom: #2c2097;
$custom-light: #765eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2097",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 246.05,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35506,
    "c": 0.18135,
    "h": 276.4
  },
  "luminance": 0.03803
}

Semantic roles & 50–950 ramp

primary
#2C2097
secondary
#B4BF54
accent
#E840D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2C2097

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

Preview Lab → · Contrast checker → · Palette generator →

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