#2C28A6#2C28A6

#2C28A6 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.192 H 273.8°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2C28A6
RGBrgb(44, 40, 166)
HSLhsl(242, 61%, 40%)
HSVhsv(242, 76%, 65%)
CMYKcmyk(73.5%, 75.9%, 0%, 34.9%)
CIE-LABlab(26.17, 43.37, -66.27)
CIE-LCHlch(26.17, 79.20, 303.20°)
OKLaboklab(38.22% 0.0128 -0.1917)
OKLCHoklch(38.22% 0.192 273.8)
XYZxyz(8.6781, 4.8054, 36.5392)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28A6 #A2A628
analogous
#2863A6 #2C28A6 #6B28A6
triadic
#2C28A6 #A62C28 #28A62C
tetradic
#2C28A6 #A62863 #A2A628 #28A66B
square
#2C28A6 #A62863 #A2A628 #28A66B
split-complementary
#2C28A6 #A66B28 #63A628
monochromatic
#121043 #1F1C75 #2C28A6 #403BD0 #706DDC

Accessibility & contrast

On white

10.71
#2C28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2C28A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28A6
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28A6#FFFFFF#000000##FFFFFF
##2C28A61.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c28a6;
/* rgb */ color: rgb(44, 40, 166);
/* oklch */ color: oklch(38.2% 0.192 273.8);
Tailwind
colors: {
  custom: {
    50: '#7964c2',
    500: '#2c28a6',
    950: '#000000',
  },
}
SCSS
$custom: #2c28a6;
$custom-light: #7964c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28a6",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 241.905,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38219,
    "c": 0.19215,
    "h": 273.8
  },
  "luminance": 0.04806
}

Semantic roles & 50–950 ramp

primary
#2C28A6
secondary
#BFC267
accent
#E444DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2C28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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