#2A33AB#2A33AB

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

Color values

HEX#2A33AB
RGBrgb(42, 51, 171)
HSLhsl(236, 61%, 42%)
HSVhsv(236, 75%, 67%)
CMYKcmyk(75.4%, 70.2%, 0%, 32.9%)
CIE-LABlab(28.90, 38.40, -64.79)
CIE-LCHlch(28.90, 75.32, 300.65°)
OKLaboklab(40.29% 0.0041 -0.1875)
OKLCHoklch(40.29% 0.188 271.3)
XYZxyz(9.4869, 5.7992, 39.1396)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A33AB #ABA22A
analogous
#2A74AB #2A33AB #622AAB
triadic
#2A33AB #AB2A33 #33AB2A
tetradic
#2A33AB #AB2A74 #ABA22A #2AAB62
square
#2A33AB #AB2A74 #ABA22A #2AAB62
split-complementary
#2A33AB #AB622A #74AB2A
monochromatic
#121649 #1E247A #2A33AB #424CD1 #737ADD

Accessibility & contrast

On white

9.72
#2A33AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A33AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A33AB
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A33AB#FFFFFF#000000##FFFFFF
##2A33AB1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a33ab;
/* rgb */ color: rgb(42, 51, 171);
/* oklch */ color: oklch(40.3% 0.188 271.3);
Tailwind
colors: {
  custom: {
    50: '#786bc5',
    500: '#2a33ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a33ab;
$custom-light: #786bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a33ab",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 171
  },
  "hsl": {
    "h": 235.814,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40289,
    "c": 0.18755,
    "h": 271.3
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

primary
#2A33AB
secondary
#C4BE6D
accent
#D944E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A33AB

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

Preview Lab → · Contrast checker → · Palette generator →

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