#2C42A2#2C42A2

#2C42A2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.157 H 268.8°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#2C42A2
RGBrgb(44, 66, 162)
HSLhsl(229, 57%, 40%)
HSVhsv(229, 73%, 64%)
CMYKcmyk(72.8%, 59.3%, 0%, 36.5%)
CIE-LABlab(31.90, 25.64, -54.47)
CIE-LCHlch(31.90, 60.20, 295.21°)
OKLaboklab(42.27% -0.0032 -0.1571)
OKLCHoklch(42.27% 0.157 268.8)
XYZxyz(9.5063, 7.0396, 35.0332)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42A2 #A28C2C
analogous
#2C7DA2 #2C42A2 #512CA2
triadic
#2C42A2 #A22C42 #42A22C
tetradic
#2C42A2 #A22C7D #A28C2C #2CA251
square
#2C42A2 #A22C7D #A28C2C #2CA251
split-complementary
#2C42A2 #A2512C #7DA22C
monochromatic
#121B42 #1F2E72 #2C42A2 #405ACB #7084D8

Accessibility & contrast

On white

8.72
#2C42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2C42A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42A2
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42A2#FFFFFF#000000##FFFFFF
##2C42A21.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2c42a2;
/* rgb */ color: rgb(44, 66, 162);
/* oklch */ color: oklch(42.3% 0.157 268.8);
Tailwind
colors: {
  custom: {
    50: '#7676be',
    500: '#2c42a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c42a2;
$custom-light: #7676be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42a2",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 228.814,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4227,
    "c": 0.15714,
    "h": 268.8
  },
  "luminance": 0.07041
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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