#2B22A6#2B22A6

#2B22A6 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.198 H 274.1°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#2B22A6
RGBrgb(43, 34, 166)
HSLhsl(244, 66%, 39%)
HSVhsv(244, 80%, 65%)
CMYKcmyk(74.1%, 79.5%, 0%, 34.9%)
CIE-LABlab(24.98, 46.50, -68.24)
CIE-LCHlch(24.98, 82.58, 304.27°)
OKLaboklab(37.36% 0.0141 -0.1974)
OKLCHoklch(37.36% 0.198 274.1)
XYZxyz(8.4489, 4.4100, 36.4749)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B22A6 #9DA622
analogous
#225BA6 #2B22A6 #6D22A6
triadic
#2B22A6 #A62B22 #22A62B
tetradic
#2B22A6 #A6225B #9DA622 #22A66D
square
#2B22A6 #A6225B #9DA622 #22A66D
split-complementary
#2B22A6 #A66D22 #5BA622
monochromatic
#110D40 #1E1873 #2B22A6 #3C30D5 #6C63DF

Accessibility & contrast

On white

11.16
#2B22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2B22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B22A6
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B22A6#FFFFFF#000000##FFFFFF
##2B22A61.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b22a6;
/* rgb */ color: rgb(43, 34, 166);
/* oklch */ color: oklch(37.4% 0.198 274.1);
Tailwind
colors: {
  custom: {
    50: '#7960c2',
    500: '#2b22a6',
    950: '#000000',
  },
}
SCSS
$custom: #2b22a6;
$custom-light: #7960c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b22a6",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 244.091,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37365,
    "c": 0.1979,
    "h": 274.1
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#2B22A6
secondary
#BDC45F
accent
#E93FDD
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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