#2B2379#2B2379

#2B2379 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.140 H 279.5°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2B2379
RGBrgb(43, 35, 121)
HSLhsl(246, 55%, 31%)
HSVhsv(246, 71%, 47%)
CMYKcmyk(64.5%, 71.1%, 0%, 52.5%)
CIE-LABlab(20.42, 30.94, -47.81)
CIE-LCHlch(20.42, 56.95, 302.91°)
OKLaboklab(32.71% 0.0231 -0.1378)
OKLCHoklch(32.71% 0.14 279.5)
XYZxyz(5.0474, 3.0957, 18.4170)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2379 #717923
analogous
#234679 #2B2379 #562379
triadic
#2B2379 #792B23 #23792B
tetradic
#2B2379 #792346 #717923 #237956
square
#2B2379 #792346 #717923 #237956
split-complementary
#2B2379 #795623 #467923
monochromatic
#09081A #1A154A #2B2379 #3C31A8 #574BCB

Accessibility & contrast

On white

12.97
#2B2379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B2379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2379
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2379#FFFFFF#000000##FFFFFF
##2B23791.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b2379;
/* rgb */ color: rgb(43, 35, 121);
/* oklch */ color: oklch(32.7% 0.140 279.5);
Tailwind
colors: {
  custom: {
    50: '#6f5fa1',
    500: '#2b2379',
    950: '#000000',
  },
}
SCSS
$custom: #2b2379;
$custom-light: #6f5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2379",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 121
  },
  "hsl": {
    "h": 245.581,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32714,
    "c": 0.13975,
    "h": 279.5
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#2B2379
secondary
#A3AC4C
accent
#DE49D1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B2379

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

Preview Lab → · Contrast checker → · Palette generator →

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