#2B2286#2B2286

#2B2286 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.158 H 277.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2B2286
RGBrgb(43, 34, 134)
HSLhsl(245, 60%, 33%)
HSVhsv(245, 75%, 53%)
CMYKcmyk(67.9%, 74.6%, 0%, 47.5%)
CIE-LABlab(21.50, 36.00, -54.27)
CIE-LCHlch(21.50, 65.13, 303.56°)
OKLaboklab(33.88% 0.0215 -0.1567)
OKLCHoklch(33.88% 0.158 277.8)
XYZxyz(5.8700, 3.3784, 22.8924)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2286 #7D8622
analogous
#224B86 #2B2286 #5D2286
triadic
#2B2286 #862B22 #22862B
tetradic
#2B2286 #86224B #7D8622 #22865D
square
#2B2286 #86224B #7D8622 #22865D
split-complementary
#2B2286 #865D22 #4B8622
monochromatic
#0C0924 #1B1655 #2B2286 #3B2EB7 #5C50D3

Accessibility & contrast

On white

12.53
#2B2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2B2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2286
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2286#FFFFFF#000000##FFFFFF
##2B22861.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b2286;
/* rgb */ color: rgb(43, 34, 134);
/* oklch */ color: oklch(33.9% 0.158 277.8);
Tailwind
colors: {
  custom: {
    50: '#725faa',
    500: '#2b2286',
    950: '#000000',
  },
}
SCSS
$custom: #2b2286;
$custom-light: #725faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2286",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 245.4,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33878,
    "c": 0.15818,
    "h": 277.8
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#2B2286
secondary
#ADB64E
accent
#E345D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B2286

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

Preview Lab → · Contrast checker → · Palette generator →

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