#2C2A7F#2C2A7F

#2C2A7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.139 H 277.3°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2C2A7F
RGBrgb(44, 42, 127)
HSLhsl(241, 50%, 33%)
HSVhsv(241, 67%, 50%)
CMYKcmyk(65.4%, 66.9%, 0%, 50.2%)
CIE-LABlab(22.73, 28.71, -47.83)
CIE-LCHlch(22.73, 55.79, 300.97°)
OKLaboklab(34.58% 0.0177 -0.1378)
OKLCHoklch(34.58% 0.139 277.3)
XYZxyz(5.6962, 3.7232, 20.4930)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A7F #7D7F2A
analogous
#2A527F #2C2A7F #562A7F
triadic
#2C2A7F #7F2C2A #2A7F2C
tetradic
#2C2A7F #7F2A52 #7D7F2A #2A7F56
square
#2C2A7F #7F2A52 #7D7F2A #2A7F56
split-complementary
#2C2A7F #7F562A #527F2A
monochromatic
#0C0C23 #1C1B51 #2C2A7F #3C39AD #5D5BC9

Accessibility & contrast

On white

12.04
#2C2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2A7F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A7F#FFFFFF#000000##FFFFFF
##2C2A7F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2a7f;
/* rgb */ color: rgb(44, 42, 127);
/* oklch */ color: oklch(34.6% 0.139 277.3);
Tailwind
colors: {
  custom: {
    50: '#7064a5',
    500: '#2c2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a7f;
$custom-light: #7064a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a7f",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 241.412,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34581,
    "c": 0.13898,
    "h": 277.3
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#2C2A7F
secondary
#ACAE57
accent
#DA4ED7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2C2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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