#2B2277#2B2277

#2B2277 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.138 H 280.1°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#2B2277
RGBrgb(43, 34, 119)
HSLhsl(246, 56%, 30%)
HSVhsv(246, 71%, 47%)
CMYKcmyk(63.9%, 71.4%, 0%, 53.3%)
CIE-LABlab(20.00, 30.88, -47.22)
CIE-LCHlch(20.00, 56.42, 303.18°)
OKLaboklab(32.35% 0.0243 -0.1361)
OKLCHoklch(32.35% 0.138 280.1)
XYZxyz(4.8970, 2.9892, 17.7681)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2277 #6E7722
analogous
#224377 #2B2277 #562277
triadic
#2B2277 #772B22 #22772B
tetradic
#2B2277 #772243 #6E7722 #227756
square
#2B2277 #772243 #6E7722 #227756
split-complementary
#2B2277 #775622 #437722
monochromatic
#090718 #1A1447 #2B2277 #3C30A7 #5649CB

Accessibility & contrast

On white

13.14
#2B2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2277
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2277#FFFFFF#000000##FFFFFF
##2B22771.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b2277;
/* rgb */ color: rgb(43, 34, 119);
/* oklch */ color: oklch(32.4% 0.138 280.1);
Tailwind
colors: {
  custom: {
    50: '#6e5e9f',
    500: '#2b2277',
    950: '#000000',
  },
}
SCSS
$custom: #2b2277;
$custom-light: #6e5e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2277",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 246.353,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.32351,
    "c": 0.13826,
    "h": 280.1
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#2B2277
secondary
#A0AA4B
accent
#DF49CF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2B2277

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

Preview Lab → · Contrast checker → · Palette generator →

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