#2C42AD#2C42AD

#2C42AD is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.172 H 268.9°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#2C42AD
RGBrgb(44, 66, 173)
HSLhsl(230, 59%, 43%)
HSVhsv(230, 75%, 68%)
CMYKcmyk(74.6%, 61.8%, 0%, 32.2%)
CIE-LABlab(32.81, 29.75, -59.58)
CIE-LCHlch(32.81, 66.59, 296.53°)
OKLaboklab(43.23% -0.0032 -0.1721)
OKLCHoklch(43.23% 0.172 268.9)
XYZxyz(10.5271, 7.4479, 40.4098)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42AD #AD972C
analogous
#2C83AD #2C42AD #562CAD
triadic
#2C42AD #AD2C42 #42AD2C
tetradic
#2C42AD #AD2C83 #AD972C #2CAD56
square
#2C42AD #AD2C83 #AD972C #2CAD56
split-complementary
#2C42AD #AD562C #83AD2C
monochromatic
#131D4B #202F7C #2C42AD #465ED0 #7788DC

Accessibility & contrast

On white

8.43
#2C42AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2C42AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42AD
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42AD#FFFFFF#000000##FFFFFF
##2C42AD1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2c42ad;
/* rgb */ color: rgb(44, 66, 173);
/* oklch */ color: oklch(43.2% 0.172 268.9);
Tailwind
colors: {
  custom: {
    50: '#7876c6',
    500: '#2c42ad',
    950: '#000000',
  },
}
SCSS
$custom: #2c42ad;
$custom-light: #7876c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42ad",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 229.767,
    "s": 59.447,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43229,
    "c": 0.17215,
    "h": 268.9
  },
  "luminance": 0.07449
}

Semantic roles & 50–950 ramp

primary
#2C42AD
secondary
#C4B671
accent
#C845E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C42AD

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

Preview Lab → · Contrast checker → · Palette generator →

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