#2C42A3#2C42A3

#2C42A3 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.159 H 268.8°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#2C42A3
RGBrgb(44, 66, 163)
HSLhsl(229, 57%, 41%)
HSVhsv(229, 73%, 64%)
CMYKcmyk(73%, 59.5%, 0%, 36.1%)
CIE-LABlab(31.98, 26.02, -54.94)
CIE-LCHlch(31.98, 60.79, 295.34°)
OKLaboklab(42.36% -0.0032 -0.1585)
OKLCHoklch(42.36% 0.159 268.8)
XYZxyz(9.5955, 7.0753, 35.5032)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42A3 #A38D2C
analogous
#2C7DA3 #2C42A3 #522CA3
triadic
#2C42A3 #A32C42 #42A32C
tetradic
#2C42A3 #A32C7D #A38D2C #2CA352
square
#2C42A3 #A32C7D #A38D2C #2CA352
split-complementary
#2C42A3 #A3522C #7DA32C
monochromatic
#121B43 #1F2E73 #2C42A3 #415ACC #7184D9

Accessibility & contrast

On white

8.69
#2C42A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2C42A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42A3
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42A3#FFFFFF#000000##FFFFFF
##2C42A31.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2c42a3;
/* rgb */ color: rgb(44, 66, 163);
/* oklch */ color: oklch(42.4% 0.159 268.8);
Tailwind
colors: {
  custom: {
    50: '#7676bf',
    500: '#2c42a3',
    950: '#000000',
  },
}
SCSS
$custom: #2c42a3;
$custom-light: #7676bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42a3",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 228.908,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42356,
    "c": 0.15852,
    "h": 268.8
  },
  "luminance": 0.07076
}

Semantic roles & 50–950 ramp

primary
#2C42A3
secondary
#C0B06B
accent
#C447E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2C42A3

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

Preview Lab → · Contrast checker → · Palette generator →

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