#2B278C#2B278C

#2B278C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.160 H 276.1°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2B278C
RGBrgb(43, 39, 140)
HSLhsl(242, 56%, 35%)
HSVhsv(242, 72%, 55%)
CMYKcmyk(69.3%, 72.1%, 0%, 45.1%)
CIE-LABlab(23.19, 35.04, -55.23)
CIE-LCHlch(23.19, 65.41, 302.39°)
OKLaboklab(35.27% 0.017 -0.1595)
OKLCHoklch(35.27% 0.16 276.1)
XYZxyz(6.4539, 3.8575, 25.2103)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B278C #888C27
analogous
#27568C #2B278C #5D278C
triadic
#2B278C #8C2B27 #278C2B
tetradic
#2B278C #8C2756 #888C27 #278C5D
square
#2B278C #8C2756 #888C27 #278C5D
split-complementary
#2B278C #8C5D27 #568C27
monochromatic
#0E0C2C #1C1A5C #2B278C #3A34BC #615CD2

Accessibility & contrast

On white

11.85
#2B278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2B278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B278C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B278C#FFFFFF#000000##FFFFFF
##2B278C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b278c;
/* rgb */ color: rgb(43, 39, 140);
/* oklch */ color: oklch(35.3% 0.160 276.1);
Tailwind
colors: {
  custom: {
    50: '#7362af',
    500: '#2b278c',
    950: '#000000',
  },
}
SCSS
$custom: #2b278c;
$custom-light: #7362af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b278c",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 242.376,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35273,
    "c": 0.16045,
    "h": 276.1
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#2B278C
secondary
#B3B758
accent
#E048DA
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B278C

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

Preview Lab → · Contrast checker → · Palette generator →

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