#2C28A4#2C28A4

#2C28A4 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.190 H 274.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2C28A4
RGBrgb(44, 40, 164)
HSLhsl(242, 61%, 40%)
HSVhsv(242, 76%, 64%)
CMYKcmyk(73.2%, 75.6%, 0%, 35.7%)
CIE-LABlab(25.96, 42.71, -65.41)
CIE-LCHlch(25.96, 78.12, 303.14°)
OKLaboklab(38% 0.0132 -0.1892)
OKLCHoklch(38% 0.19 274)
XYZxyz(8.4961, 4.7325, 35.5805)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28A4 #A0A428
analogous
#2862A4 #2C28A4 #6A28A4
triadic
#2C28A4 #A42C28 #28A42C
tetradic
#2C28A4 #A42862 #A0A428 #28A46A
square
#2C28A4 #A42862 #A0A428 #28A46A
split-complementary
#2C28A4 #A46A28 #62A428
monochromatic
#121042 #1F1C73 #2C28A4 #3F3ACF #6F6BDB

Accessibility & contrast

On white

10.79
#2C28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2C28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28A4
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28A4#FFFFFF#000000##FFFFFF
##2C28A41.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#0038A2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c28a4;
/* rgb */ color: rgb(44, 40, 164);
/* oklch */ color: oklch(38.0% 0.190 274.0);
Tailwind
colors: {
  custom: {
    50: '#7864c0',
    500: '#2c28a4',
    950: '#000000',
  },
}
SCSS
$custom: #2c28a4;
$custom-light: #7864c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28a4",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 241.935,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.38004,
    "c": 0.18968,
    "h": 274
  },
  "luminance": 0.04733
}

Semantic roles & 50–950 ramp

primary
#2C28A4
secondary
#BFC166
accent
#E444DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2C28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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