#2B2796#2B2796

#2B2796 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.173 H 275.0°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2B2796
RGBrgb(43, 39, 150)
HSLhsl(242, 59%, 37%)
HSVhsv(242, 74%, 59%)
CMYKcmyk(71.3%, 74%, 0%, 41.2%)
CIE-LABlab(24.21, 38.47, -59.75)
CIE-LCHlch(24.21, 71.06, 302.78°)
OKLaboklab(36.31% 0.0152 -0.1727)
OKLCHoklch(36.31% 0.173 275)
XYZxyz(7.2250, 4.1660, 29.2716)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2796 #929627
analogous
#275B96 #2B2796 #632796
triadic
#2B2796 #962B27 #27962B
tetradic
#2B2796 #96275B #929627 #279663
square
#2B2796 #96275B #929627 #279663
split-complementary
#2B2796 #966327 #5B9627
monochromatic
#0F0E35 #1D1A65 #2B2796 #3934C7 #6661D6

Accessibility & contrast

On white

11.45
#2B2796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2B2796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2796
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2796#FFFFFF#000000##FFFFFF
##2B27961.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b2796;
/* rgb */ color: rgb(43, 39, 150);
/* oklch */ color: oklch(36.3% 0.173 275.0);
Tailwind
colors: {
  custom: {
    50: '#7563b6',
    500: '#2b2796',
    950: '#000000',
  },
}
SCSS
$custom: #2b2796;
$custom-light: #7563b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2796",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 242.162,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36307,
    "c": 0.1734,
    "h": 275
  },
  "luminance": 0.04167
}

Semantic roles & 50–950 ramp

primary
#2B2796
secondary
#B8BC5D
accent
#E246DC
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2796

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

Preview Lab → · Contrast checker → · Palette generator →

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