#2B278B#2B278B

#2B278B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.159 H 276.2°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#2B278B
RGBrgb(43, 39, 139)
HSLhsl(242, 56%, 35%)
HSVhsv(242, 72%, 55%)
CMYKcmyk(69.1%, 71.9%, 0%, 45.5%)
CIE-LABlab(23.09, 34.70, -54.77)
CIE-LCHlch(23.09, 64.84, 302.35°)
OKLaboklab(35.17% 0.0171 -0.1582)
OKLCHoklch(35.17% 0.159 276.2)
XYZxyz(6.3805, 3.8281, 24.8238)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B278B #878B27
analogous
#27558B #2B278B #5D278B
triadic
#2B278B #8B2B27 #278B2B
tetradic
#2B278B #8B2755 #878B27 #278B5D
square
#2B278B #8B2755 #878B27 #278B5D
split-complementary
#2B278B #8B5D27 #558B27
monochromatic
#0D0C2B #1C1A5B #2B278B #3A34BB #605BD1

Accessibility & contrast

On white

11.89
#2B278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B278B
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B278B#FFFFFF#000000##FFFFFF
##2B278B1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b278b;
/* rgb */ color: rgb(43, 39, 139);
/* oklch */ color: oklch(35.2% 0.159 276.2);
Tailwind
colors: {
  custom: {
    50: '#7262ae',
    500: '#2b278b',
    950: '#000000',
  },
}
SCSS
$custom: #2b278b;
$custom-light: #7262ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b278b",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 242.4,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35171,
    "c": 0.15913,
    "h": 276.2
  },
  "luminance": 0.03829
}

Semantic roles & 50–950 ramp

primary
#2B278B
secondary
#B2B658
accent
#DF48D9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B278B

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

Preview Lab → · Contrast checker → · Palette generator →

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