#2C2A74#2C2A74

#2C2A74 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.123 H 278.6°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2C2A74
RGBrgb(44, 42, 116)
HSLhsl(242, 47%, 31%)
HSVhsv(242, 64%, 45%)
CMYKcmyk(62.1%, 63.8%, 0%, 54.5%)
CIE-LABlab(21.77, 24.77, -42.41)
CIE-LCHlch(21.77, 49.11, 300.29°)
OKLaboklab(33.58% 0.0185 -0.1219)
OKLCHoklch(33.58% 0.123 278.6)
XYZxyz(5.0181, 3.4520, 16.9215)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A74 #72742A
analogous
#2A4D74 #2C2A74 #512A74
triadic
#2C2A74 #742C2A #2A742C
tetradic
#2C2A74 #742A4D #72742A #2A7451
square
#2C2A74 #742A4D #72742A #2A7451
split-complementary
#2C2A74 #74512A #4D742A
monochromatic
#0A091A #1B1A47 #2C2A74 #3D3AA1 #5956C2

Accessibility & contrast

On white

12.42
#2C2A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C2A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A74
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A74#FFFFFF#000000##FFFFFF
##2C2A741.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c2a74;
/* rgb */ color: rgb(44, 42, 116);
/* oklch */ color: oklch(33.6% 0.123 278.6);
Tailwind
colors: {
  custom: {
    50: '#6d639d',
    500: '#2c2a74',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a74;
$custom-light: #6d639d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a74",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 241.622,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33575,
    "c": 0.12332,
    "h": 278.6
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#2C2A74
secondary
#A4A654
accent
#D651D3
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2C2A74

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

Preview Lab → · Contrast checker → · Palette generator →

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