#2A2B9E#2A2B9E

#2A2B9E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.180 H 273.3°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2A2B9E
RGBrgb(42, 43, 158)
HSLhsl(239, 58%, 39%)
HSVhsv(239, 73%, 62%)
CMYKcmyk(73.4%, 72.8%, 0%, 38%)
CIE-LABlab(25.83, 38.73, -61.99)
CIE-LCHlch(25.83, 73.09, 302.00°)
OKLaboklab(37.69% 0.0103 -0.1793)
OKLCHoklch(37.69% 0.18 273.3)
XYZxyz(7.9882, 4.6878, 32.8250)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B9E #9E9D2A
analogous
#2A659E #2A2B9E #632A9E
triadic
#2A2B9E #9E2A2B #2B9E2A
tetradic
#2A2B9E #9E2A65 #9E9D2A #2A9E63
square
#2A2B9E #9E2A65 #9E9D2A #2A9E63
split-complementary
#2A2B9E #9E632A #659E2A
monochromatic
#10113D #1D1E6E #2A2B9E #3A3CCB #6B6CD8

Accessibility & contrast

On white

10.84
#2A2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A2B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B9E
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B9E#FFFFFF#000000##FFFFFF
##2A2B9E1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2b9e;
/* rgb */ color: rgb(42, 43, 158);
/* oklch */ color: oklch(37.7% 0.180 273.3);
Tailwind
colors: {
  custom: {
    50: '#7665bc',
    500: '#2a2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b9e;
$custom-light: #7665bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b9e",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 239.483,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37688,
    "c": 0.1796,
    "h": 273.3
  },
  "luminance": 0.04689
}

Semantic roles & 50–950 ramp

primary
#2A2B9E
secondary
#BEBD66
accent
#E047E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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