#2A2BAC#2A2BAC

#2A2BAC is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.197 H 272.3°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2A2BAC
RGBrgb(42, 43, 172)
HSLhsl(240, 61%, 42%)
HSVhsv(240, 76%, 67%)
CMYKcmyk(75.6%, 75%, 0%, 32.5%)
CIE-LABlab(27.29, 43.50, -68.05)
CIE-LCHlch(27.29, 80.76, 302.59°)
OKLaboklab(39.17% 0.0079 -0.1969)
OKLCHoklch(39.17% 0.197 272.3)
XYZxyz(9.2626, 5.1976, 39.5368)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BAC #ACAB2A
analogous
#2A6CAC #2A2BAC #6A2AAC
triadic
#2A2BAC #AC2A2B #2BAC2A
tetradic
#2A2BAC #AC2A6C #ACAB2A #2AAC6A
square
#2A2BAC #AC2A6C #ACAB2A #2AAC6A
split-complementary
#2A2BAC #AC6A2A #6CAC2A
monochromatic
#12124A #1E1F7B #2A2BAC #4243D1 #7374DD

Accessibility & contrast

On white

10.30
#2A2BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A2BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BAC
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BAC#FFFFFF#000000##FFFFFF
##2A2BAC1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003AAA
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2bac;
/* rgb */ color: rgb(42, 43, 172);
/* oklch */ color: oklch(39.2% 0.197 272.3);
Tailwind
colors: {
  custom: {
    50: '#7966c6',
    500: '#2a2bac',
    950: '#000000',
  },
}
SCSS
$custom: #2a2bac;
$custom-light: #7966c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2bac",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 239.538,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39168,
    "c": 0.19711,
    "h": 272.3
  },
  "luminance": 0.05199
}

Semantic roles & 50–950 ramp

primary
#2A2BAC
secondary
#C4C46D
accent
#E344E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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