#2A3AAA#2A3AAA

#2A3AAA is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.178 H 270.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#2A3AAA
RGBrgb(42, 58, 170)
HSLhsl(233, 60%, 42%)
HSVhsv(233, 75%, 67%)
CMYKcmyk(75.3%, 65.9%, 0%, 33.3%)
CIE-LABlab(30.45, 33.62, -61.65)
CIE-LCHlch(30.45, 70.22, 298.61°)
OKLaboklab(41.38% 0.0002 -0.1783)
OKLCHoklch(41.38% 0.178 270.1)
XYZxyz(9.7211, 6.4196, 38.7492)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AAA #AA9A2A
analogous
#2A7AAA #2A3AAA #5A2AAA
triadic
#2A3AAA #AA2A3A #3AAA2A
tetradic
#2A3AAA #AA2A7A #AA9A2A #2AAA5A
square
#2A3AAA #AA2A7A #AA9A2A #2AAA5A
split-complementary
#2A3AAA #AA5A2A #7AAA2A
monochromatic
#121948 #1E2979 #2A3AAA #4153D0 #727FDC

Accessibility & contrast

On white

9.19
#2A3AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A3AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AAA
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AAA#FFFFFF#000000##FFFFFF
##2A3AAA1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0042A8
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a3aaa;
/* rgb */ color: rgb(42, 58, 170);
/* oklch */ color: oklch(41.4% 0.178 270.1);
Tailwind
colors: {
  custom: {
    50: '#7870c4',
    500: '#2a3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #2a3aaa;
$custom-light: #7870c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3aaa",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 232.5,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41384,
    "c": 0.17829,
    "h": 270.1
  },
  "luminance": 0.06421
}

Semantic roles & 50–950 ramp

primary
#2A3AAA
secondary
#C3B96C
accent
#D044E4
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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