#2A28A8#2A28A8

#2A28A8 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.3% C 0.195 H 272.9°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2A28A8
RGBrgb(42, 40, 168)
HSLhsl(241, 62%, 41%)
HSVhsv(241, 76%, 66%)
CMYKcmyk(75%, 76.2%, 0%, 34.1%)
CIE-LABlab(26.26, 43.85, -67.34)
CIE-LCHlch(26.26, 80.36, 303.07°)
OKLaboklab(38.31% 0.01 -0.1949)
OKLCHoklch(38.31% 0.195 272.9)
XYZxyz(8.7792, 4.8361, 37.5090)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28A8 #A6A828
analogous
#2866A8 #2A28A8 #6A28A8
triadic
#2A28A8 #A82A28 #28A82A
tetradic
#2A28A8 #A82866 #A6A828 #28A86A
square
#2A28A8 #A82866 #A6A828 #28A86A
split-complementary
#2A28A8 #A86A28 #66A828
monochromatic
#111045 #1E1C77 #2A28A8 #3F3DD1 #706EDC

Accessibility & contrast

On white

10.67
#2A28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28A8
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28A8#FFFFFF#000000##FFFFFF
##2A28A81.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.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: #2a28a8;
/* rgb */ color: rgb(42, 40, 168);
/* oklch */ color: oklch(38.3% 0.195 272.9);
Tailwind
colors: {
  custom: {
    50: '#7964c3',
    500: '#2a28a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a28a8;
$custom-light: #7964c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28a8",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 240.938,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38312,
    "c": 0.19511,
    "h": 272.9
  },
  "luminance": 0.04837
}

Semantic roles & 50–950 ramp

primary
#2A28A8
secondary
#C2C369
accent
#E543E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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