#2B278D#2B278D

#2B278D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.162 H 276.0°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2B278D
RGBrgb(43, 39, 141)
HSLhsl(242, 57%, 35%)
HSVhsv(242, 72%, 55%)
CMYKcmyk(69.5%, 72.3%, 0%, 44.7%)
CIE-LABlab(23.29, 35.39, -55.69)
CIE-LCHlch(23.29, 65.98, 302.43°)
OKLaboklab(35.38% 0.0168 -0.1609)
OKLCHoklch(35.38% 0.162 276)
XYZxyz(6.5279, 3.8871, 25.6004)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B278D #898D27
analogous
#27568D #2B278D #5E278D
triadic
#2B278D #8D2B27 #278D2B
tetradic
#2B278D #8D2756 #898D27 #278D5E
square
#2B278D #8D2756 #898D27 #278D5E
split-complementary
#2B278D #8D5E27 #568D27
monochromatic
#0E0C2D #1C1A5D #2B278D #3A34BD #615CD2

Accessibility & contrast

On white

11.81
#2B278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2B278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B278D
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B278D#FFFFFF#000000##FFFFFF
##2B278D1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b278d;
/* rgb */ color: rgb(43, 39, 141);
/* oklch */ color: oklch(35.4% 0.162 276.0);
Tailwind
colors: {
  custom: {
    50: '#7362af',
    500: '#2b278d',
    950: '#000000',
  },
}
SCSS
$custom: #2b278d;
$custom-light: #7362af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b278d",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 242.353,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35375,
    "c": 0.16176,
    "h": 276
  },
  "luminance": 0.03888
}

Semantic roles & 50–950 ramp

primary
#2B278D
secondary
#B3B759
accent
#E048DA
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2B278D

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

Preview Lab → · Contrast checker → · Palette generator →

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