#2A33AA#2A33AA

#2A33AA is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.2% C 0.186 H 271.3°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2A33AA
RGBrgb(42, 51, 170)
HSLhsl(236, 60%, 42%)
HSVhsv(236, 75%, 67%)
CMYKcmyk(75.3%, 70%, 0%, 33.3%)
CIE-LABlab(28.80, 38.05, -64.35)
CIE-LCHlch(28.80, 74.76, 300.59°)
OKLaboklab(40.19% 0.0042 -0.1862)
OKLCHoklch(40.19% 0.186 271.3)
XYZxyz(9.3919, 5.7612, 38.6395)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A33AA #AAA12A
analogous
#2A73AA #2A33AA #612AAA
triadic
#2A33AA #AA2A33 #33AA2A
tetradic
#2A33AA #AA2A73 #AAA12A #2AAA61
square
#2A33AA #AA2A73 #AAA12A #2AAA61
split-complementary
#2A33AA #AA612A #73AA2A
monochromatic
#121648 #1E2479 #2A33AA #414BD0 #727ADC

Accessibility & contrast

On white

9.76
#2A33AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A33AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A33AA
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A33AA#FFFFFF#000000##FFFFFF
##2A33AA1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#00546A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a33aa;
/* rgb */ color: rgb(42, 51, 170);
/* oklch */ color: oklch(40.2% 0.186 271.3);
Tailwind
colors: {
  custom: {
    50: '#786bc4',
    500: '#2a33aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a33aa;
$custom-light: #786bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a33aa",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 170
  },
  "hsl": {
    "h": 235.781,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40188,
    "c": 0.18627,
    "h": 271.3
  },
  "luminance": 0.05762
}

Semantic roles & 50–950 ramp

primary
#2A33AA
secondary
#C3BD6C
accent
#D844E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A33AA

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

Preview Lab → · Contrast checker → · Palette generator →

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