#2B279C#2B279C

#2B279C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.181 H 274.4°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#2B279C
RGBrgb(43, 39, 156)
HSLhsl(242, 60%, 38%)
HSVhsv(242, 75%, 61%)
CMYKcmyk(72.4%, 75%, 0%, 38.8%)
CIE-LABlab(24.84, 40.50, -62.39)
CIE-LCHlch(24.84, 74.39, 302.99°)
OKLaboklab(36.94% 0.014 -0.1804)
OKLCHoklch(36.94% 0.181 274.4)
XYZxyz(7.7205, 4.3642, 31.8815)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B279C #989C27
analogous
#275D9C #2B279C #65279C
triadic
#2B279C #9C2B27 #279C2B
tetradic
#2B279C #9C275D #989C27 #279C65
square
#2B279C #9C275D #989C27 #279C65
split-complementary
#2B279C #9C6527 #5D9C27
monochromatic
#100F3A #1E1B6B #2B279C #3934CC #6965D8

Accessibility & contrast

On white

11.21
#2B279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B279C
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B279C#FFFFFF#000000##FFFFFF
##2B279C1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b279c;
/* rgb */ color: rgb(43, 39, 156);
/* oklch */ color: oklch(36.9% 0.181 274.4);
Tailwind
colors: {
  custom: {
    50: '#7663ba',
    500: '#2b279c',
    950: '#000000',
  },
}
SCSS
$custom: #2b279c;
$custom-light: #7663ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b279c",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 242.051,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36941,
    "c": 0.18098,
    "h": 274.4
  },
  "luminance": 0.04365
}

Semantic roles & 50–950 ramp

primary
#2B279C
secondary
#BBBE61
accent
#E345DE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2B279C

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

Preview Lab → · Contrast checker → · Palette generator →

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