#2B2287#2B2287

#2B2287 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.159 H 277.7°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2B2287
RGBrgb(43, 34, 135)
HSLhsl(245, 60%, 33%)
HSVhsv(245, 75%, 53%)
CMYKcmyk(68.1%, 74.8%, 0%, 47.1%)
CIE-LABlab(21.60, 36.34, -54.73)
CIE-LCHlch(21.60, 65.69, 303.58°)
OKLaboklab(33.98% 0.0213 -0.1581)
OKLCHoklch(33.98% 0.159 277.7)
XYZxyz(5.9400, 3.4064, 23.2614)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2287 #7E8722
analogous
#224B87 #2B2287 #5E2287
triadic
#2B2287 #872B22 #22872B
tetradic
#2B2287 #87224B #7E8722 #22875E
square
#2B2287 #87224B #7E8722 #22875E
split-complementary
#2B2287 #875E22 #4B8722
monochromatic
#0C0925 #1B1656 #2B2287 #3B2EB8 #5C50D3

Accessibility & contrast

On white

12.49
#2B2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2287
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2287#FFFFFF#000000##FFFFFF
##2B22871.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b2287;
/* rgb */ color: rgb(43, 34, 135);
/* oklch */ color: oklch(34.0% 0.159 277.7);
Tailwind
colors: {
  custom: {
    50: '#725fab',
    500: '#2b2287',
    950: '#000000',
  },
}
SCSS
$custom: #2b2287;
$custom-light: #725fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2287",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 245.347,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33983,
    "c": 0.15948,
    "h": 277.7
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B2287

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

Preview Lab → · Contrast checker → · Palette generator →

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