#2B22A5#2B22A5

#2B22A5 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.197 H 274.2°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2B22A5
RGBrgb(43, 34, 165)
HSLhsl(244, 66%, 39%)
HSVhsv(244, 79%, 65%)
CMYKcmyk(73.9%, 79.4%, 0%, 35.3%)
CIE-LABlab(24.87, 46.18, -67.82)
CIE-LCHlch(24.87, 82.05, 304.25°)
OKLaboklab(37.25% 0.0144 -0.1962)
OKLCHoklch(37.25% 0.197 274.2)
XYZxyz(8.3576, 4.3734, 35.9937)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B22A5 #9CA522
analogous
#225BA5 #2B22A5 #6D22A5
triadic
#2B22A5 #A52B22 #22A52B
tetradic
#2B22A5 #A5225B #9CA522 #22A56D
square
#2B22A5 #A5225B #9CA522 #22A56D
split-complementary
#2B22A5 #A56D22 #5BA522
monochromatic
#110D40 #1E1872 #2B22A5 #3B30D4 #6B63DF

Accessibility & contrast

On white

11.20
#2B22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2B22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B22A5
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B22A5#FFFFFF#000000##FFFFFF
##2B22A51.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b22a5;
/* rgb */ color: rgb(43, 34, 165);
/* oklch */ color: oklch(37.3% 0.197 274.2);
Tailwind
colors: {
  custom: {
    50: '#7960c1',
    500: '#2b22a5',
    950: '#000000',
  },
}
SCSS
$custom: #2b22a5;
$custom-light: #7960c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b22a5",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 244.122,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37252,
    "c": 0.19671,
    "h": 274.2
  },
  "luminance": 0.04374
}

Semantic roles & 50–950 ramp

primary
#2B22A5
secondary
#BDC45F
accent
#E93FDD
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2B22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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