#2C2A7E#2C2A7E

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

Color values

HEX#2C2A7E
RGBrgb(44, 42, 126)
HSLhsl(241, 50%, 33%)
HSVhsv(241, 67%, 49%)
CMYKcmyk(65.1%, 66.7%, 0%, 50.6%)
CIE-LABlab(22.64, 28.35, -47.35)
CIE-LCHlch(22.64, 55.19, 300.91°)
OKLaboklab(34.49% 0.0178 -0.1364)
OKLCHoklch(34.49% 0.138 277.4)
XYZxyz(5.6313, 3.6973, 20.1515)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A7E #7C7E2A
analogous
#2A527E #2C2A7E #562A7E
triadic
#2C2A7E #7E2C2A #2A7E2C
tetradic
#2C2A7E #7E2A52 #7C7E2A #2A7E56
square
#2C2A7E #7E2A52 #7C7E2A #2A7E56
split-complementary
#2C2A7E #7E562A #527E2A
monochromatic
#0C0B22 #1C1B50 #2C2A7E #3C39AC #5D5AC8

Accessibility & contrast

On white

12.07
#2C2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C2A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A7E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A7E#FFFFFF#000000##FFFFFF
##2C2A7E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2a7e;
/* rgb */ color: rgb(44, 42, 126);
/* oklch */ color: oklch(34.5% 0.138 277.4);
Tailwind
colors: {
  custom: {
    50: '#7064a4',
    500: '#2c2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a7e;
$custom-light: #7064a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a7e",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 241.429,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34487,
    "c": 0.13758,
    "h": 277.4
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#2C2A7E
secondary
#ACAE56
accent
#DA4ED6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2C2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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