#2A28AB#2A28AB

#2A28AB is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.199 H 272.7°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2A28AB
RGBrgb(42, 40, 171)
HSLhsl(241, 62%, 41%)
HSVhsv(241, 77%, 67%)
CMYKcmyk(75.4%, 76.6%, 0%, 32.9%)
CIE-LABlab(26.59, 44.84, -68.60)
CIE-LCHlch(26.59, 81.96, 303.17°)
OKLaboklab(38.64% 0.0094 -0.1985)
OKLCHoklch(38.64% 0.199 272.7)
XYZxyz(9.0619, 4.9491, 38.9979)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28AB #A9AB28
analogous
#2868AB #2A28AB #6C28AB
triadic
#2A28AB #AB2A28 #28AB2A
tetradic
#2A28AB #AB2868 #A9AB28 #28AB6C
square
#2A28AB #AB2868 #A9AB28 #28AB6C
split-complementary
#2A28AB #AB6C28 #68AB28
monochromatic
#121148 #1E1C79 #2A28AB #413ED2 #7270DE

Accessibility & contrast

On white

10.55
#2A28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28AB
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28AB#FFFFFF#000000##FFFFFF
##2A28AB1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a28ab;
/* rgb */ color: rgb(42, 40, 171);
/* oklch */ color: oklch(38.6% 0.199 272.7);
Tailwind
colors: {
  custom: {
    50: '#7964c5',
    500: '#2a28ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a28ab;
$custom-light: #7964c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28ab",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 240.916,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.3864,
    "c": 0.19876,
    "h": 272.7
  },
  "luminance": 0.0495
}

Semantic roles & 50–950 ramp

primary
#2A28AB
secondary
#C3C46A
accent
#E543E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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