#2A2D86#2A2D86

#2A2D86 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.145 H 274.7°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#2A2D86
RGBrgb(42, 45, 134)
HSLhsl(238, 52%, 35%)
HSVhsv(238, 69%, 53%)
CMYKcmyk(68.7%, 66.4%, 0%, 47.5%)
CIE-LABlab(23.97, 28.95, -50.23)
CIE-LCHlch(23.97, 57.97, 299.96°)
OKLaboklab(35.64% 0.012 -0.1449)
OKLCHoklch(35.64% 0.145 274.7)
XYZxyz(6.1949, 4.0897, 23.0126)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D86 #86832A
analogous
#2A5B86 #2A2D86 #552A86
triadic
#2A2D86 #862A2D #2D862A
tetradic
#2A2D86 #862A5B #86832A #2A8655
square
#2A2D86 #862A5B #86832A #2A8655
split-complementary
#2A2D86 #86552A #5B862A
monochromatic
#0D0E29 #1B1D57 #2A2D86 #393DB5 #5E62CD

Accessibility & contrast

On white

11.55
#2A2D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A2D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D86
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D86#FFFFFF#000000##FFFFFF
##2A2D861.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003584
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2d86;
/* rgb */ color: rgb(42, 45, 134);
/* oklch */ color: oklch(35.6% 0.145 274.7);
Tailwind
colors: {
  custom: {
    50: '#7066aa',
    500: '#2a2d86',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d86;
$custom-light: #7066aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d86",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 238.043,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35637,
    "c": 0.14541,
    "h": 274.7
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

primary
#2A2D86
secondary
#B2AF5A
accent
#D74CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A2D86

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

Preview Lab → · Contrast checker → · Palette generator →

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