#2A2BAA#2A2BAA

#2A2BAA is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.195 H 272.4°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2A2BAA
RGBrgb(42, 43, 170)
HSLhsl(240, 60%, 42%)
HSVhsv(240, 75%, 67%)
CMYKcmyk(75.3%, 74.7%, 0%, 33.3%)
CIE-LABlab(27.08, 42.82, -67.19)
CIE-LCHlch(27.08, 79.68, 302.51°)
OKLaboklab(38.95% 0.0082 -0.1945)
OKLCHoklch(38.95% 0.195 272.4)
XYZxyz(9.0720, 5.1213, 38.5328)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BAA #AAA92A
analogous
#2A6BAA #2A2BAA #692AAA
triadic
#2A2BAA #AA2A2B #2BAA2A
tetradic
#2A2BAA #AA2A6B #AAA92A #2AAA69
square
#2A2BAA #AA2A6B #AAA92A #2AAA69
split-complementary
#2A2BAA #AA692A #6BAA2A
monochromatic
#121248 #1E1F79 #2A2BAA #4142D0 #7273DC

Accessibility & contrast

On white

10.37
#2A2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BAA
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BAA#FFFFFF#000000##FFFFFF
##2A2BAA1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#003AA8
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2baa;
/* rgb */ color: rgb(42, 43, 170);
/* oklch */ color: oklch(39.0% 0.195 272.4);
Tailwind
colors: {
  custom: {
    50: '#7966c5',
    500: '#2a2baa',
    950: '#000000',
  },
}
SCSS
$custom: #2a2baa;
$custom-light: #7966c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2baa",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 239.531,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38953,
    "c": 0.19464,
    "h": 272.4
  },
  "luminance": 0.05122
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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