#2B226D#2B226D

#2B226D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.124 H 281.9°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#2B226D
RGBrgb(43, 34, 109)
HSLhsl(247, 52%, 28%)
HSVhsv(247, 69%, 43%)
CMYKcmyk(60.6%, 68.8%, 0%, 57.3%)
CIE-LABlab(19.06, 27.41, -42.31)
CIE-LCHlch(19.06, 50.41, 302.94°)
OKLaboklab(31.39% 0.0257 -0.1217)
OKLCHoklch(31.39% 0.124 281.9)
XYZxyz(4.3277, 2.7615, 14.7700)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B226D #646D22
analogous
#223E6D #2B226D #50226D
triadic
#2B226D #6D2B22 #226D2B
tetradic
#2B226D #6D223E #646D22 #226D50
square
#2B226D #6D223E #646D22 #226D50
split-complementary
#2B226D #6D5022 #3E6D22
monochromatic
#090717 #19133E #2B226D #3D319C #5445C5

Accessibility & contrast

On white

13.53
#2B226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2B226D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B226D
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B226D#FFFFFF#000000##FFFFFF
##2B226D1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#063544
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b226d;
/* rgb */ color: rgb(43, 34, 109);
/* oklch */ color: oklch(31.4% 0.124 281.9);
Tailwind
colors: {
  custom: {
    50: '#6c5e98',
    500: '#2b226d',
    950: '#000000',
  },
}
SCSS
$custom: #2b226d;
$custom-light: #6c5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2b226d",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 247.2,
    "s": 52.448,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31385,
    "c": 0.1244,
    "h": 281.9
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#2B226D
secondary
#96A14A
accent
#DC4CCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2B226D

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

Preview Lab → · Contrast checker → · Palette generator →

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