#2B278E#2B278E

#2B278E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.163 H 275.8°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#2B278E
RGBrgb(43, 39, 142)
HSLhsl(242, 57%, 35%)
HSVhsv(242, 73%, 56%)
CMYKcmyk(69.7%, 72.5%, 0%, 44.3%)
CIE-LABlab(23.40, 35.73, -56.15)
CIE-LCHlch(23.40, 66.55, 302.47°)
OKLaboklab(35.48% 0.0166 -0.1622)
OKLCHoklch(35.48% 0.163 275.8)
XYZxyz(6.6027, 3.9170, 25.9940)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B278E #8A8E27
analogous
#27568E #2B278E #5E278E
triadic
#2B278E #8E2B27 #278E2B
tetradic
#2B278E #8E2756 #8A8E27 #278E5E
square
#2B278E #8E2756 #8A8E27 #278E5E
split-complementary
#2B278E #8E5E27 #568E27
monochromatic
#0E0D2E #1C1A5E #2B278E #3A34BE #615DD2

Accessibility & contrast

On white

11.77
#2B278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B278E
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B278E#FFFFFF#000000##FFFFFF
##2B278E1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b278e;
/* rgb */ color: rgb(43, 39, 142);
/* oklch */ color: oklch(35.5% 0.163 275.8);
Tailwind
colors: {
  custom: {
    50: '#7362b0',
    500: '#2b278e',
    950: '#000000',
  },
}
SCSS
$custom: #2b278e;
$custom-light: #7362b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b278e",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 242.33,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35477,
    "c": 0.16307,
    "h": 275.8
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#2B278E
secondary
#B4B859
accent
#E048DA
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2B278E

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

Preview Lab → · Contrast checker → · Palette generator →

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