#2C42AF#2C42AF

#2C42AF is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.175 H 268.9°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2C42AF
RGBrgb(44, 66, 175)
HSLhsl(230, 60%, 43%)
HSVhsv(230, 75%, 69%)
CMYKcmyk(74.9%, 62.3%, 0%, 31.4%)
CIE-LABlab(32.98, 30.49, -60.49)
CIE-LCHlch(32.98, 67.74, 296.75°)
OKLaboklab(43.41% -0.0032 -0.1748)
OKLCHoklch(43.41% 0.175 268.9)
XYZxyz(10.7221, 7.5259, 41.4367)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42AF #AF992C
analogous
#2C83AF #2C42AF #582CAF
triadic
#2C42AF #AF2C42 #42AF2C
tetradic
#2C42AF #AF2C83 #AF992C #2CAF58
square
#2C42AF #AF2C83 #AF992C #2CAF58
split-complementary
#2C42AF #AF582C #83AF2C
monochromatic
#131D4D #20307E #2C42AF #475ED1 #7889DD

Accessibility & contrast

On white

8.38
#2C42AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2C42AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42AF
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42AF#FFFFFF#000000##FFFFFF
##2C42AF1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c42af;
/* rgb */ color: rgb(44, 66, 175);
/* oklch */ color: oklch(43.4% 0.175 268.9);
Tailwind
colors: {
  custom: {
    50: '#7976c8',
    500: '#2c42af',
    950: '#000000',
  },
}
SCSS
$custom: #2c42af;
$custom-light: #7976c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42af",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 229.924,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43407,
    "c": 0.17483,
    "h": 268.9
  },
  "luminance": 0.07527
}

Semantic roles & 50–950 ramp

primary
#2C42AF
secondary
#C5B772
accent
#C845E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C42AF

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

Preview Lab → · Contrast checker → · Palette generator →

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