#2A2888#2A2888

#2A2888 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.154 H 275.8°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2A2888
RGBrgb(42, 40, 136)
HSLhsl(241, 55%, 35%)
HSVhsv(241, 71%, 53%)
CMYKcmyk(69.1%, 70.6%, 0%, 46.7%)
CIE-LABlab(22.95, 32.89, -53.14)
CIE-LCHlch(22.95, 62.49, 301.76°)
OKLaboklab(34.96% 0.0156 -0.1534)
OKLCHoklch(34.96% 0.154 275.8)
XYZxyz(6.1561, 3.7868, 23.6943)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2888 #868828
analogous
#285688 #2A2888 #5A2888
triadic
#2A2888 #882A28 #28882A
tetradic
#2A2888 #882856 #868828 #28885A
square
#2A2888 #882856 #868828 #28885A
split-complementary
#2A2888 #885A28 #568828
monochromatic
#0D0C29 #1B1A59 #2A2888 #3936B7 #5E5BCF

Accessibility & contrast

On white

11.95
#2A2888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A2888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2888
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2888#FFFFFF#000000##FFFFFF
##2A28881.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2888;
/* rgb */ color: rgb(42, 40, 136);
/* oklch */ color: oklch(35.0% 0.154 275.8);
Tailwind
colors: {
  custom: {
    50: '#7163ac',
    500: '#2a2888',
    950: '#000000',
  },
}
SCSS
$custom: #2a2888;
$custom-light: #7163ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2888",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 241.25,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34961,
    "c": 0.15424,
    "h": 275.8
  },
  "luminance": 0.03787
}

Semantic roles & 50–950 ramp

primary
#2A2888
secondary
#B2B458
accent
#DE4ADB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A2888

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

Preview Lab → · Contrast checker → · Palette generator →

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