#2A28A6#2A28A6

#2A28A6 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.193 H 273.1°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#2A28A6
RGBrgb(42, 40, 166)
HSLhsl(241, 61%, 40%)
HSVhsv(241, 76%, 65%)
CMYKcmyk(74.7%, 75.9%, 0%, 34.9%)
CIE-LABlab(26.05, 43.19, -66.49)
CIE-LCHlch(26.05, 79.28, 303.01°)
OKLaboklab(38.1% 0.0103 -0.1924)
OKLCHoklch(38.1% 0.193 273.1)
XYZxyz(8.5943, 4.7621, 36.5352)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28A6 #A4A628
analogous
#2865A6 #2A28A6 #6928A6
triadic
#2A28A6 #A62A28 #28A62A
tetradic
#2A28A6 #A62865 #A4A628 #28A669
square
#2A28A6 #A62865 #A4A628 #28A669
split-complementary
#2A28A6 #A66928 #65A628
monochromatic
#111043 #1E1C75 #2A28A6 #3E3BD0 #6E6DDC

Accessibility & contrast

On white

10.75
#2A28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A28A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28A6
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28A6#FFFFFF#000000##FFFFFF
##2A28A61.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a28a6;
/* rgb */ color: rgb(42, 40, 166);
/* oklch */ color: oklch(38.1% 0.193 273.1);
Tailwind
colors: {
  custom: {
    50: '#7864c2',
    500: '#2a28a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a28a6;
$custom-light: #7864c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28a6",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 240.952,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38095,
    "c": 0.19266,
    "h": 273.1
  },
  "luminance": 0.04763
}

Semantic roles & 50–950 ramp

primary
#2A28A6
secondary
#C1C267
accent
#E444E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2A28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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