#2A2BAB#2A2BAB

#2A2BAB is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.196 H 272.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2A2BAB
RGBrgb(42, 43, 171)
HSLhsl(240, 61%, 42%)
HSVhsv(240, 75%, 67%)
CMYKcmyk(75.4%, 74.9%, 0%, 32.9%)
CIE-LABlab(27.18, 43.16, -67.62)
CIE-LCHlch(27.18, 80.22, 302.55°)
OKLaboklab(39.06% 0.0081 -0.1957)
OKLCHoklch(39.06% 0.196 272.4)
XYZxyz(9.1669, 5.1593, 39.0329)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BAB #ABAA2A
analogous
#2A6CAB #2A2BAB #6A2AAB
triadic
#2A2BAB #AB2A2B #2BAB2A
tetradic
#2A2BAB #AB2A6C #ABAA2A #2AAB6A
square
#2A2BAB #AB2A6C #ABAA2A #2AAB6A
split-complementary
#2A2BAB #AB6A2A #6CAB2A
monochromatic
#121249 #1E1F7A #2A2BAB #4243D1 #7374DD

Accessibility & contrast

On white

10.33
#2A2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BAB
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BAB#FFFFFF#000000##FFFFFF
##2A2BAB1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2bab;
/* rgb */ color: rgb(42, 43, 171);
/* oklch */ color: oklch(39.1% 0.196 272.4);
Tailwind
colors: {
  custom: {
    50: '#7966c5',
    500: '#2a2bab',
    950: '#000000',
  },
}
SCSS
$custom: #2a2bab;
$custom-light: #7966c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2bab",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 239.535,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.3906,
    "c": 0.19588,
    "h": 272.4
  },
  "luminance": 0.0516
}

Semantic roles & 50–950 ramp

primary
#2A2BAB
secondary
#C4C36D
accent
#E244E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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