#2A28A2#2A28A2

#2A28A2 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.188 H 273.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2A28A2
RGBrgb(42, 40, 162)
HSLhsl(241, 60%, 40%)
HSVhsv(241, 75%, 64%)
CMYKcmyk(74.1%, 75.3%, 0%, 36.5%)
CIE-LABlab(25.62, 41.85, -64.77)
CIE-LCHlch(25.62, 77.11, 302.87°)
OKLaboklab(37.66% 0.0111 -0.1874)
OKLCHoklch(37.66% 0.188 273.4)
XYZxyz(8.2330, 4.6176, 34.6328)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28A2 #A0A228
analogous
#2863A2 #2A28A2 #6728A2
triadic
#2A28A2 #A22A28 #28A22A
tetradic
#2A28A2 #A22863 #A0A228 #28A267
square
#2A28A2 #A22863 #A0A228 #28A267
split-complementary
#2A28A2 #A26728 #63A228
monochromatic
#111040 #1D1C71 #2A28A2 #3C39CE #6C6ADA

Accessibility & contrast

On white

10.92
#2A28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28A2
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28A2#FFFFFF#000000##FFFFFF
##2A28A21.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a28a2;
/* rgb */ color: rgb(42, 40, 162);
/* oklch */ color: oklch(37.7% 0.188 273.4);
Tailwind
colors: {
  custom: {
    50: '#7764bf',
    500: '#2a28a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a28a2;
$custom-light: #7764bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28a2",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 240.984,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37664,
    "c": 0.18772,
    "h": 273.4
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

primary
#2A28A2
secondary
#BFC165
accent
#E444E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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