#2B2255#2B2255

#2B2255 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.089 H 287.7°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#2B2255
RGBrgb(43, 34, 85)
HSLhsl(251, 43%, 23%)
HSVhsv(251, 60%, 33%)
CMYKcmyk(49.4%, 60%, 0%, 66.7%)
CIE-LABlab(17.05, 19.11, -29.71)
CIE-LCHlch(17.05, 35.33, 302.74°)
OKLaboklab(29.28% 0.0271 -0.0847)
OKLCHoklch(29.28% 0.089 287.7)
XYZxyz(3.2075, 2.3134, 8.8701)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2255 #4C5522
analogous
#223255 #2B2255 #442255
triadic
#2B2255 #552B22 #22552B
tetradic
#2B2255 #552232 #4C5522 #225544
square
#2B2255 #552232 #4C5522 #225544
split-complementary
#2B2255 #554422 #325522
monochromatic
#0B0916 #151129 #2B2255 #413381 #5745AC

Accessibility & contrast

On white

14.36
#2B2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2B2255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2255
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2255#FFFFFF#000000##FFFFFF
##2B22551.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062B57
Deuteranopia (green-blind)
#062954
Tritanopia (blue-blind)
#1E2D37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b2255;
/* rgb */ color: rgb(43, 34, 85);
/* oklch */ color: oklch(29.3% 0.089 287.7);
Tailwind
colors: {
  custom: {
    50: '#685d85',
    500: '#2b2255',
    950: '#000000',
  },
}
SCSS
$custom: #2b2255;
$custom-light: #685d85;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2255",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 250.588,
    "s": 42.857,
    "l": 23.333
  },
  "oklch": {
    "l": 0.2928,
    "c": 0.08889,
    "h": 287.7
  },
  "luminance": 0.02314
}

Semantic roles & 50–950 ramp

primary
#2B2255
secondary
#7E894A
accent
#D355BC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2B2255

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

Preview Lab → · Contrast checker → · Palette generator →

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