#2B279A#2B279A

#2B279A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.178 H 274.6°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2B279A
RGBrgb(43, 39, 154)
HSLhsl(242, 60%, 38%)
HSVhsv(242, 75%, 60%)
CMYKcmyk(72.1%, 74.7%, 0%, 39.6%)
CIE-LABlab(24.63, 39.83, -61.52)
CIE-LCHlch(24.63, 73.28, 302.92°)
OKLaboklab(36.73% 0.0144 -0.1779)
OKLCHoklch(36.73% 0.178 274.6)
XYZxyz(7.5526, 4.2970, 30.9970)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B279A #969A27
analogous
#275C9A #2B279A #64279A
triadic
#2B279A #9A2B27 #279A2B
tetradic
#2B279A #9A275C #969A27 #279A64
square
#2B279A #9A275C #969A27 #279A64
split-complementary
#2B279A #9A6427 #5C9A27
monochromatic
#100E38 #1D1B69 #2B279A #3933CB #6864D8

Accessibility & contrast

On white

11.29
#2B279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2B279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B279A
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B279A#FFFFFF#000000##FFFFFF
##2B279A1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b279a;
/* rgb */ color: rgb(43, 39, 154);
/* oklch */ color: oklch(36.7% 0.178 274.6);
Tailwind
colors: {
  custom: {
    50: '#7663b9',
    500: '#2b279a',
    950: '#000000',
  },
}
SCSS
$custom: #2b279a;
$custom-light: #7663b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b279a",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 242.087,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36728,
    "c": 0.17847,
    "h": 274.6
  },
  "luminance": 0.04298
}

Semantic roles & 50–950 ramp

primary
#2B279A
secondary
#BABD5F
accent
#E345DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B279A

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

Preview Lab → · Contrast checker → · Palette generator →

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