#2B279B#2B279B

#2B279B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.180 H 274.5°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2B279B
RGBrgb(43, 39, 155)
HSLhsl(242, 60%, 38%)
HSVhsv(242, 75%, 61%)
CMYKcmyk(72.3%, 74.8%, 0%, 39.2%)
CIE-LABlab(24.73, 40.17, -61.96)
CIE-LCHlch(24.73, 73.84, 302.96°)
OKLaboklab(36.83% 0.0142 -0.1792)
OKLCHoklch(36.83% 0.18 274.5)
XYZxyz(7.6362, 4.3304, 31.4374)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B279B #979B27
analogous
#275D9B #2B279B #65279B
triadic
#2B279B #9B2B27 #279B2B
tetradic
#2B279B #9B275D #979B27 #279B65
square
#2B279B #9B275D #979B27 #279B65
split-complementary
#2B279B #9B6527 #5D9B27
monochromatic
#100E39 #1D1B6A #2B279B #3933CC #6864D8

Accessibility & contrast

On white

11.25
#2B279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2B279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B279B
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B279B#FFFFFF#000000##FFFFFF
##2B279B1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b279b;
/* rgb */ color: rgb(43, 39, 155);
/* oklch */ color: oklch(36.8% 0.180 274.5);
Tailwind
colors: {
  custom: {
    50: '#7663ba',
    500: '#2b279b',
    950: '#000000',
  },
}
SCSS
$custom: #2b279b;
$custom-light: #7663ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b279b",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 242.069,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36834,
    "c": 0.17972,
    "h": 274.5
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

primary
#2B279B
secondary
#BBBE60
accent
#E345DE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B279B

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

Preview Lab → · Contrast checker → · Palette generator →

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