#2C2C7A#2C2C7A

#2C2C7A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.129 H 277.2°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2C2C7A
RGBrgb(44, 44, 122)
HSLhsl(240, 47%, 33%)
HSVhsv(240, 64%, 48%)
CMYKcmyk(63.9%, 63.9%, 0%, 52.2%)
CIE-LABlab(22.80, 25.59, -44.56)
CIE-LCHlch(22.80, 51.38, 299.86°)
OKLaboklab(34.49% 0.0162 -0.1282)
OKLCHoklch(34.49% 0.129 277.2)
XYZxyz(5.4511, 3.7416, 18.8435)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2C7A #7A7A2C
analogous
#2C537A #2C2C7A #532C7A
triadic
#2C2C7A #7A2C2C #2C7A2C
tetradic
#2C2C7A #7A2C53 #7A7A2C #2C7A53
square
#2C2C7A #7A2C53 #7A7A2C #2C7A53
split-complementary
#2C2C7A #7A532C #537A2C
monochromatic
#0C0C20 #1C1C4D #2C2C7A #3C3CA7 #5C5CC4

Accessibility & contrast

On white

12.01
#2C2C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2C2C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2C7A
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2C7A#FFFFFF#000000##FFFFFF
##2C2C7A1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2c7a;
/* rgb */ color: rgb(44, 44, 122);
/* oklch */ color: oklch(34.5% 0.129 277.2);
Tailwind
colors: {
  custom: {
    50: '#6f65a1',
    500: '#2c2c7a',
    950: '#000000',
  },
}
SCSS
$custom: #2c2c7a;
$custom-light: #6f65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2c7a",
  "rgb": {
    "r": 44,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 240,
    "s": 46.988,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3449,
    "c": 0.12926,
    "h": 277.2
  },
  "luminance": 0.03742
}

Semantic roles & 50–950 ramp

primary
#2C2C7A
secondary
#AAAA57
accent
#D751D7
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2C2C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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