#2A2B87#2A2B87

#2A2B87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.149 H 275.2°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2A2B87
RGBrgb(42, 43, 135)
HSLhsl(239, 53%, 35%)
HSVhsv(239, 69%, 53%)
CMYKcmyk(68.9%, 68.1%, 0%, 47.1%)
CIE-LABlab(23.57, 30.62, -51.50)
CIE-LCHlch(23.57, 59.92, 300.73°)
OKLaboklab(35.38% 0.0134 -0.1487)
OKLCHoklch(35.38% 0.149 275.2)
XYZxyz(6.1905, 3.9687, 23.3568)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B87 #87862A
analogous
#2A5A87 #2A2B87 #582A87
triadic
#2A2B87 #872A2B #2B872A
tetradic
#2A2B87 #872A5A #87862A #2A8758
square
#2A2B87 #872A5A #87862A #2A8758
split-complementary
#2A2B87 #87582A #5A872A
monochromatic
#0D0D2A #1B1C58 #2A2B87 #393AB6 #5E60CD

Accessibility & contrast

On white

11.71
#2A2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B87
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B87#FFFFFF#000000##FFFFFF
##2A2B871.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2b87;
/* rgb */ color: rgb(42, 43, 135);
/* oklch */ color: oklch(35.4% 0.149 275.2);
Tailwind
colors: {
  custom: {
    50: '#7165ab',
    500: '#2a2b87',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b87;
$custom-light: #7165ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b87",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 239.355,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35375,
    "c": 0.14928,
    "h": 275.2
  },
  "luminance": 0.03969
}

Semantic roles & 50–950 ramp

primary
#2A2B87
secondary
#B3B25A
accent
#DA4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2A2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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