#2C28A3#2C28A3

#2C28A3 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.188 H 274.1°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2C28A3
RGBrgb(44, 40, 163)
HSLhsl(242, 61%, 40%)
HSVhsv(242, 75%, 64%)
CMYKcmyk(73%, 75.5%, 0%, 36.1%)
CIE-LABlab(25.85, 42.37, -64.98)
CIE-LCHlch(25.85, 77.58, 303.11°)
OKLaboklab(37.9% 0.0134 -0.188)
OKLCHoklch(37.9% 0.188 274.1)
XYZxyz(8.4062, 4.6966, 35.1067)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28A3 #9FA328
analogous
#2862A3 #2C28A3 #6928A3
triadic
#2C28A3 #A32C28 #28A32C
tetradic
#2C28A3 #A32862 #9FA328 #28A369
square
#2C28A3 #A32862 #9FA328 #28A369
split-complementary
#2C28A3 #A36928 #62A328
monochromatic
#111041 #1F1C72 #2C28A3 #3E3ACF #6E6BDB

Accessibility & contrast

On white

10.83
#2C28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2C28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28A3
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28A3#FFFFFF#000000##FFFFFF
##2C28A31.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A7
Deuteranopia (green-blind)
#0037A1
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c28a3;
/* rgb */ color: rgb(44, 40, 163);
/* oklch */ color: oklch(37.9% 0.188 274.1);
Tailwind
colors: {
  custom: {
    50: '#7864bf',
    500: '#2c28a3',
    950: '#000000',
  },
}
SCSS
$custom: #2c28a3;
$custom-light: #7864bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28a3",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 241.951,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37897,
    "c": 0.18845,
    "h": 274.1
  },
  "luminance": 0.04697
}

Semantic roles & 50–950 ramp

primary
#2C28A3
secondary
#BEC166
accent
#E444DF
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2C28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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