#2C28A2#2C28A2

#2C28A2 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.187 H 274.2°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2C28A2
RGBrgb(44, 40, 162)
HSLhsl(242, 60%, 40%)
HSVhsv(242, 75%, 64%)
CMYKcmyk(72.8%, 75.3%, 0%, 36.5%)
CIE-LABlab(25.75, 42.04, -64.55)
CIE-LCHlch(25.75, 77.03, 303.07°)
OKLaboklab(37.79% 0.0136 -0.1867)
OKLCHoklch(37.79% 0.187 274.2)
XYZxyz(8.3169, 4.6609, 34.6367)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28A2 #9EA228
analogous
#2861A2 #2C28A2 #6928A2
triadic
#2C28A2 #A22C28 #28A22C
tetradic
#2C28A2 #A22861 #9EA228 #28A269
square
#2C28A2 #A22861 #9EA228 #28A269
split-complementary
#2C28A2 #A26928 #61A228
monochromatic
#111040 #1F1C71 #2C28A2 #3E39CE #6E6ADA

Accessibility & contrast

On white

10.87
#2C28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C28A2
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28A2#FFFFFF#000000##FFFFFF
##2C28A21.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c28a2;
/* rgb */ color: rgb(44, 40, 162);
/* oklch */ color: oklch(37.8% 0.187 274.2);
Tailwind
colors: {
  custom: {
    50: '#7864bf',
    500: '#2c28a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c28a2;
$custom-light: #7864bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28a2",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 241.967,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3779,
    "c": 0.1872,
    "h": 274.2
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#2C28A2
secondary
#BEC165
accent
#E444DE
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2C28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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