#2C42A8#2C42A8

#2C42A8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.8% C 0.165 H 268.9°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2C42A8
RGBrgb(44, 66, 168)
HSLhsl(229, 58%, 42%)
HSVhsv(229, 74%, 66%)
CMYKcmyk(73.8%, 60.7%, 0%, 34.1%)
CIE-LABlab(32.39, 27.89, -57.27)
CIE-LCHlch(32.39, 63.70, 295.96°)
OKLaboklab(42.79% -0.0032 -0.1653)
OKLCHoklch(42.79% 0.165 268.9)
XYZxyz(10.0524, 7.2580, 37.9094)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42A8 #A8922C
analogous
#2C80A8 #2C42A8 #542CA8
triadic
#2C42A8 #A82C42 #42A82C
tetradic
#2C42A8 #A82C80 #A8922C #2CA854
square
#2C42A8 #A82C80 #A8922C #2CA854
split-complementary
#2C42A8 #A8542C #80A82C
monochromatic
#131C47 #1F2F78 #2C42A8 #435CCE #7486DB

Accessibility & contrast

On white

8.57
#2C42A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2C42A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42A8
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42A8#FFFFFF#000000##FFFFFF
##2C42A81.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2c42a8;
/* rgb */ color: rgb(44, 66, 168);
/* oklch */ color: oklch(42.8% 0.165 268.9);
Tailwind
colors: {
  custom: {
    50: '#7776c3',
    500: '#2c42a8',
    950: '#000000',
  },
}
SCSS
$custom: #2c42a8;
$custom-light: #7776c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42a8",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 229.355,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42788,
    "c": 0.16538,
    "h": 268.9
  },
  "luminance": 0.07259
}

Semantic roles & 50–950 ramp

primary
#2C42A8
secondary
#C2B36E
accent
#C646E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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