#2C28A8#2C28A8

#2C28A8 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.195 H 273.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2C28A8
RGBrgb(44, 40, 168)
HSLhsl(242, 62%, 41%)
HSVhsv(242, 76%, 66%)
CMYKcmyk(73.8%, 76.2%, 0%, 34.1%)
CIE-LABlab(26.39, 44.03, -67.12)
CIE-LCHlch(26.39, 80.27, 303.26°)
OKLaboklab(38.43% 0.0124 -0.1942)
OKLCHoklch(38.43% 0.195 273.7)
XYZxyz(8.8630, 4.8793, 37.5129)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28A8 #A4A828
analogous
#2864A8 #2C28A8 #6C28A8
triadic
#2C28A8 #A82C28 #28A82C
tetradic
#2C28A8 #A82864 #A4A828 #28A86C
square
#2C28A8 #A82864 #A4A828 #28A86C
split-complementary
#2C28A8 #A86C28 #64A828
monochromatic
#121045 #1F1C77 #2C28A8 #413DD1 #716EDC

Accessibility & contrast

On white

10.63
#2C28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2C28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28A8
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28A8#FFFFFF#000000##FFFFFF
##2C28A81.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c28a8;
/* rgb */ color: rgb(44, 40, 168);
/* oklch */ color: oklch(38.4% 0.195 273.7);
Tailwind
colors: {
  custom: {
    50: '#7964c3',
    500: '#2c28a8',
    950: '#000000',
  },
}
SCSS
$custom: #2c28a8;
$custom-light: #7964c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28a8",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 241.875,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38434,
    "c": 0.19459,
    "h": 273.7
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

primary
#2C28A8
secondary
#C0C369
accent
#E543E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2C28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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