#2C2A7D#2C2A7D

#2C2A7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.136 H 277.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2C2A7D
RGBrgb(44, 42, 125)
HSLhsl(241, 50%, 33%)
HSVhsv(241, 66%, 49%)
CMYKcmyk(64.8%, 66.4%, 0%, 51%)
CIE-LABlab(22.55, 27.99, -46.86)
CIE-LCHlch(22.55, 54.59, 300.85°)
OKLaboklab(34.39% 0.0179 -0.135)
OKLCHoklch(34.39% 0.136 277.5)
XYZxyz(5.5671, 3.6716, 19.8134)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A7D #7B7D2A
analogous
#2A517D #2C2A7D #562A7D
triadic
#2C2A7D #7D2C2A #2A7D2C
tetradic
#2C2A7D #7D2A51 #7B7D2A #2A7D56
square
#2C2A7D #7D2A51 #7B7D2A #2A7D56
split-complementary
#2C2A7D #7D562A #517D2A
monochromatic
#0C0B21 #1C1B4F #2C2A7D #3C39AB #5D5AC8

Accessibility & contrast

On white

12.11
#2C2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2C2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A7D
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A7D#FFFFFF#000000##FFFFFF
##2C2A7D1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2a7d;
/* rgb */ color: rgb(44, 42, 125);
/* oklch */ color: oklch(34.4% 0.136 277.5);
Tailwind
colors: {
  custom: {
    50: '#6f64a3',
    500: '#2c2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a7d;
$custom-light: #6f64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a7d",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 241.446,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34394,
    "c": 0.13618,
    "h": 277.5
  },
  "luminance": 0.03672
}

Semantic roles & 50–950 ramp

primary
#2C2A7D
secondary
#ABAD56
accent
#D94FD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2C2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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