#2A2687#2A2687

#2A2687 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.155 H 276.3°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2A2687
RGBrgb(42, 38, 135)
HSLhsl(242, 56%, 34%)
HSVhsv(242, 72%, 53%)
CMYKcmyk(68.9%, 71.9%, 0%, 47.1%)
CIE-LABlab(22.40, 33.79, -53.42)
CIE-LCHlch(22.40, 63.21, 302.32°)
OKLaboklab(34.53% 0.0171 -0.1543)
OKLCHoklch(34.53% 0.155 276.3)
XYZxyz(6.0197, 3.6272, 23.2999)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2687 #838726
analogous
#265387 #2A2687 #5B2687
triadic
#2A2687 #872A26 #26872A
tetradic
#2A2687 #872653 #838726 #26875B
square
#2A2687 #872653 #838726 #26875B
split-complementary
#2A2687 #875B26 #538726
monochromatic
#0C0B27 #1B1957 #2A2687 #3933B7 #5D58D0

Accessibility & contrast

On white

12.17
#2A2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2687
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2687#FFFFFF#000000##FFFFFF
##2A26871.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2687;
/* rgb */ color: rgb(42, 38, 135);
/* oklch */ color: oklch(34.5% 0.155 276.3);
Tailwind
colors: {
  custom: {
    50: '#7161ab',
    500: '#2a2687',
    950: '#000000',
  },
}
SCSS
$custom: #2a2687;
$custom-light: #7161ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2687",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 242.474,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34531,
    "c": 0.15524,
    "h": 276.3
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#2A2687
secondary
#B1B554
accent
#DF48D9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A2687

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

Preview Lab → · Contrast checker → · Palette generator →

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