#2B22A0#2B22A0

#2B22A0 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.191 H 274.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2B22A0
RGBrgb(43, 34, 160)
HSLhsl(244, 65%, 38%)
HSVhsv(244, 79%, 63%)
CMYKcmyk(73.1%, 78.8%, 0%, 37.3%)
CIE-LABlab(24.31, 44.58, -65.72)
CIE-LCHlch(24.31, 79.41, 304.15°)
OKLaboklab(36.69% 0.0156 -0.1901)
OKLCHoklch(36.69% 0.191 274.7)
XYZxyz(7.9114, 4.1949, 33.6437)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B22A0 #97A022
analogous
#2258A0 #2B22A0 #6A22A0
triadic
#2B22A0 #A02B22 #22A02B
tetradic
#2B22A0 #A02258 #97A022 #22A06A
square
#2B22A0 #A02258 #97A022 #22A06A
split-complementary
#2B22A0 #A06A22 #58A022
monochromatic
#100D3B #1D176E #2B22A0 #392DD2 #685FDD

Accessibility & contrast

On white

11.42
#2B22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B22A0
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B22A0#FFFFFF#000000##FFFFFF
##2B22A01.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b22a0;
/* rgb */ color: rgb(43, 34, 160);
/* oklch */ color: oklch(36.7% 0.191 274.7);
Tailwind
colors: {
  custom: {
    50: '#7860bd',
    500: '#2b22a0',
    950: '#000000',
  },
}
SCSS
$custom: #2b22a0;
$custom-light: #7860bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b22a0",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 244.286,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36693,
    "c": 0.1907,
    "h": 274.7
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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