#2B22A2#2B22A2

#2B22A2 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.193 H 274.5°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#2B22A2
RGBrgb(43, 34, 162)
HSLhsl(244, 65%, 38%)
HSVhsv(244, 79%, 64%)
CMYKcmyk(73.5%, 79%, 0%, 36.5%)
CIE-LABlab(24.53, 45.22, -66.56)
CIE-LCHlch(24.53, 80.47, 304.19°)
OKLaboklab(36.92% 0.0151 -0.1925)
OKLCHoklch(36.92% 0.193 274.5)
XYZxyz(8.0877, 4.2655, 34.5725)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B22A2 #99A222
analogous
#2259A2 #2B22A2 #6B22A2
triadic
#2B22A2 #A22B22 #22A22B
tetradic
#2B22A2 #A22259 #99A222 #22A26B
square
#2B22A2 #A22259 #99A222 #22A26B
split-complementary
#2B22A2 #A26B22 #59A222
monochromatic
#100D3D #1E176F #2B22A2 #3A2ED3 #6961DE

Accessibility & contrast

On white

11.33
#2B22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2B22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B22A2
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B22A2#FFFFFF#000000##FFFFFF
##2B22A21.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A6
Deuteranopia (green-blind)
#0034A0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b22a2;
/* rgb */ color: rgb(43, 34, 162);
/* oklch */ color: oklch(36.9% 0.193 274.5);
Tailwind
colors: {
  custom: {
    50: '#7860bf',
    500: '#2b22a2',
    950: '#000000',
  },
}
SCSS
$custom: #2b22a2;
$custom-light: #7860bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b22a2",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 244.219,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36916,
    "c": 0.19311,
    "h": 274.5
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#2B22A2
secondary
#BCC35D
accent
#E840DC
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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