#2B2291#2B2291

#2B2291 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.172 H 276.4°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2B2291
RGBrgb(43, 34, 145)
HSLhsl(245, 62%, 35%)
HSVhsv(245, 77%, 57%)
CMYKcmyk(70.3%, 76.6%, 0%, 43.1%)
CIE-LABlab(22.66, 39.68, -59.22)
CIE-LCHlch(22.66, 71.29, 303.82°)
OKLaboklab(35.05% 0.0191 -0.1712)
OKLCHoklch(35.05% 0.172 276.4)
XYZxyz(6.6775, 3.7014, 27.1451)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2291 #889122
analogous
#225091 #2B2291 #632291
triadic
#2B2291 #912B22 #22912B
tetradic
#2B2291 #912250 #889122 #229163
square
#2B2291 #912250 #889122 #229163
split-complementary
#2B2291 #916322 #509122
monochromatic
#0E0B2E #1C165F #2B2291 #3A2EC3 #6156D7

Accessibility & contrast

On white

12.07
#2B2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2B2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2291
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2291#FFFFFF#000000##FFFFFF
##2B22911.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2291;
/* rgb */ color: rgb(43, 34, 145);
/* oklch */ color: oklch(35.0% 0.172 276.4);
Tailwind
colors: {
  custom: {
    50: '#745fb2',
    500: '#2b2291',
    950: '#000000',
  },
}
SCSS
$custom: #2b2291;
$custom-light: #745fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2291",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 244.865,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.17223,
    "h": 276.4
  },
  "luminance": 0.03702
}

Semantic roles & 50–950 ramp

primary
#2B2291
secondary
#B3BB53
accent
#E543D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2B2291

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

Preview Lab → · Contrast checker → · Palette generator →

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