#2C28A1#2C28A1

#2C28A1 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.186 H 274.3°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2C28A1
RGBrgb(44, 40, 161)
HSLhsl(242, 60%, 39%)
HSVhsv(242, 75%, 63%)
CMYKcmyk(72.7%, 75.2%, 0%, 36.9%)
CIE-LABlab(25.64, 41.71, -64.12)
CIE-LCHlch(25.64, 76.49, 303.04°)
OKLaboklab(37.68% 0.0138 -0.1854)
OKLCHoklch(37.68% 0.186 274.3)
XYZxyz(8.2284, 4.6255, 34.1705)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28A1 #9DA128
analogous
#2861A1 #2C28A1 #6828A1
triadic
#2C28A1 #A12C28 #28A12C
tetradic
#2C28A1 #A12861 #9DA128 #28A168
square
#2C28A1 #A12861 #9DA128 #28A168
split-complementary
#2C28A1 #A16828 #61A128
monochromatic
#11103F #1F1C70 #2C28A1 #3D39CE #6D6ADA

Accessibility & contrast

On white

10.91
#2C28A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2C28A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28A1
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28A1#FFFFFF#000000##FFFFFF
##2C28A11.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c28a1;
/* rgb */ color: rgb(44, 40, 161);
/* oklch */ color: oklch(37.7% 0.186 274.3);
Tailwind
colors: {
  custom: {
    50: '#7864be',
    500: '#2c28a1',
    950: '#000000',
  },
}
SCSS
$custom: #2c28a1;
$custom-light: #7864be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28a1",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 241.983,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37683,
    "c": 0.18596,
    "h": 274.3
  },
  "luminance": 0.04626
}

Semantic roles & 50–950 ramp

primary
#2C28A1
secondary
#BDC065
accent
#E344DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2C28A1

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

Preview Lab → · Contrast checker → · Palette generator →

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