#2C2797#2C2797

#2C2797 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.174 H 275.4°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2C2797
RGBrgb(44, 39, 151)
HSLhsl(243, 59%, 37%)
HSVhsv(243, 74%, 59%)
CMYKcmyk(70.9%, 74.2%, 0%, 40.8%)
CIE-LABlab(24.39, 38.92, -60.07)
CIE-LCHlch(24.39, 71.58, 302.94°)
OKLaboklab(36.48% 0.0163 -0.1737)
OKLCHoklch(36.48% 0.174 275.4)
XYZxyz(7.3483, 4.2202, 29.6995)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2797 #929727
analogous
#275A97 #2C2797 #642797
triadic
#2C2797 #972C27 #27972C
tetradic
#2C2797 #97275A #929727 #279764
square
#2C2797 #97275A #929727 #279764
split-complementary
#2C2797 #976427 #5A9727
monochromatic
#100E36 #1E1A66 #2C2797 #3A34C8 #6762D6

Accessibility & contrast

On white

11.39
#2C2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2C2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2797
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2797#FFFFFF#000000##FFFFFF
##2C27971.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c2797;
/* rgb */ color: rgb(44, 39, 151);
/* oklch */ color: oklch(36.5% 0.174 275.4);
Tailwind
colors: {
  custom: {
    50: '#7663b7',
    500: '#2c2797',
    950: '#000000',
  },
}
SCSS
$custom: #2c2797;
$custom-light: #7663b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2797",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 242.679,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3648,
    "c": 0.17442,
    "h": 275.4
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#2C2797
secondary
#B8BC5E
accent
#E246DB
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2C2797

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

Preview Lab → · Contrast checker → · Palette generator →

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