#2C2A79#2C2A79

#2C2A79 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.131 H 278.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2C2A79
RGBrgb(44, 42, 121)
HSLhsl(242, 48%, 32%)
HSVhsv(242, 65%, 47%)
CMYKcmyk(63.6%, 65.3%, 0%, 52.5%)
CIE-LABlab(22.20, 26.56, -44.90)
CIE-LCHlch(22.20, 52.17, 300.61°)
OKLaboklab(34.03% 0.0182 -0.1292)
OKLCHoklch(34.03% 0.131 278)
XYZxyz(5.3168, 3.5715, 18.4946)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A79 #77792A
analogous
#2A5079 #2C2A79 #542A79
triadic
#2C2A79 #792C2A #2A792C
tetradic
#2C2A79 #792A50 #77792A #2A7954
square
#2C2A79 #792A50 #77792A #2A7954
split-complementary
#2C2A79 #79542A #50792A
monochromatic
#0B0A1E #1B1A4C #2C2A79 #3D3AA6 #5B58C5

Accessibility & contrast

On white

12.25
#2C2A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C2A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A79
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A79#FFFFFF#000000##FFFFFF
##2C2A791.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c2a79;
/* rgb */ color: rgb(44, 42, 121);
/* oklch */ color: oklch(34.0% 0.131 278.0);
Tailwind
colors: {
  custom: {
    50: '#6f64a0',
    500: '#2c2a79',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a79;
$custom-light: #6f64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a79",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 241.519,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34025,
    "c": 0.13051,
    "h": 278
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#2C2A79
secondary
#A8AB54
accent
#D850D5
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2C2A79

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

Preview Lab → · Contrast checker → · Palette generator →

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