#2C2497#2C2497

#2C2497 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.177 H 275.8°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2C2497
RGBrgb(44, 36, 151)
HSLhsl(244, 61%, 37%)
HSVhsv(244, 76%, 59%)
CMYKcmyk(70.9%, 76.2%, 0%, 40.8%)
CIE-LABlab(23.77, 40.65, -61.09)
CIE-LCHlch(23.77, 73.37, 303.64°)
OKLaboklab(36.05% 0.018 -0.1766)
OKLCHoklch(36.05% 0.177 275.8)
XYZxyz(7.2537, 4.0309, 29.6679)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2497 #8F9724
analogous
#245697 #2C2497 #662497
triadic
#2C2497 #972C24 #24972C
tetradic
#2C2497 #972456 #8F9724 #249766
square
#2C2497 #972456 #8F9724 #249766
split-complementary
#2C2497 #976624 #569724
monochromatic
#0F0C34 #1E1866 #2C2497 #3A30C8 #665DD8

Accessibility & contrast

On white

11.63
#2C2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2C2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2497
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2497#FFFFFF#000000##FFFFFF
##2C24971.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c2497;
/* rgb */ color: rgb(44, 36, 151);
/* oklch */ color: oklch(36.0% 0.177 275.8);
Tailwind
colors: {
  custom: {
    50: '#7661b7',
    500: '#2c2497',
    950: '#000000',
  },
}
SCSS
$custom: #2c2497;
$custom-light: #7661b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2497",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 244.174,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36045,
    "c": 0.17749,
    "h": 275.8
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#2C2497
secondary
#B6BD5A
accent
#E543D9
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2C2497

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

Preview Lab → · Contrast checker → · Palette generator →

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