#2C28AB#2C28AB

#2C28AB is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.8% C 0.198 H 273.4°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2C28AB
RGBrgb(44, 40, 171)
HSLhsl(242, 62%, 41%)
HSVhsv(242, 77%, 67%)
CMYKcmyk(74.3%, 76.6%, 0%, 32.9%)
CIE-LABlab(26.71, 45.01, -68.39)
CIE-LCHlch(26.71, 81.88, 303.35°)
OKLaboklab(38.76% 0.0118 -0.1979)
OKLCHoklch(38.76% 0.198 273.4)
XYZxyz(9.1457, 4.9924, 39.0018)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28AB #A7AB28
analogous
#2866AB #2C28AB #6E28AB
triadic
#2C28AB #AB2C28 #28AB2C
tetradic
#2C28AB #AB2866 #A7AB28 #28AB6E
square
#2C28AB #AB2866 #A7AB28 #28AB6E
split-complementary
#2C28AB #AB6E28 #66AB28
monochromatic
#121148 #1F1C79 #2C28AB #433ED2 #7370DE

Accessibility & contrast

On white

10.51
#2C28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2C28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28AB
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28AB#FFFFFF#000000##FFFFFF
##2C28AB1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AF
Deuteranopia (green-blind)
#0039A9
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c28ab;
/* rgb */ color: rgb(44, 40, 171);
/* oklch */ color: oklch(38.8% 0.198 273.4);
Tailwind
colors: {
  custom: {
    50: '#7a64c5',
    500: '#2c28ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c28ab;
$custom-light: #7a64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28ab",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 241.832,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.3876,
    "c": 0.19824,
    "h": 273.4
  },
  "luminance": 0.04993
}

Semantic roles & 50–950 ramp

primary
#2C28AB
secondary
#C2C46A
accent
#E543E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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