#2B278F#2B278F

#2B278F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.164 H 275.7°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#2B278F
RGBrgb(43, 39, 143)
HSLhsl(242, 57%, 36%)
HSVhsv(242, 73%, 56%)
CMYKcmyk(69.9%, 72.7%, 0%, 43.9%)
CIE-LABlab(23.50, 36.08, -56.60)
CIE-LCHlch(23.50, 67.12, 302.51°)
OKLaboklab(35.58% 0.0164 -0.1635)
OKLCHoklch(35.58% 0.164 275.7)
XYZxyz(6.6781, 3.9472, 26.3912)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B278F #8B8F27
analogous
#27578F #2B278F #5F278F
triadic
#2B278F #8F2B27 #278F2B
tetradic
#2B278F #8F2757 #8B8F27 #278F5F
square
#2B278F #8F2757 #8B8F27 #278F5F
split-complementary
#2B278F #8F5F27 #578F27
monochromatic
#0E0D2F #1D1A5F #2B278F #3934BF #625DD3

Accessibility & contrast

On white

11.73
#2B278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2B278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B278F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B278F#FFFFFF#000000##FFFFFF
##2B278F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b278f;
/* rgb */ color: rgb(43, 39, 143);
/* oklch */ color: oklch(35.6% 0.164 275.7);
Tailwind
colors: {
  custom: {
    50: '#7362b1',
    500: '#2b278f',
    950: '#000000',
  },
}
SCSS
$custom: #2b278f;
$custom-light: #7362b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b278f",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 242.308,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3558,
    "c": 0.16437,
    "h": 275.7
  },
  "luminance": 0.03948
}

Semantic roles & 50–950 ramp

primary
#2B278F
secondary
#B5B85A
accent
#E047DB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2B278F

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

Preview Lab → · Contrast checker → · Palette generator →

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