#2B2799#2B2799

#2B2799 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.177 H 274.7°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#2B2799
RGBrgb(43, 39, 153)
HSLhsl(242, 59%, 38%)
HSVhsv(242, 75%, 60%)
CMYKcmyk(71.9%, 74.5%, 0%, 40%)
CIE-LABlab(24.53, 39.49, -61.08)
CIE-LCHlch(24.53, 72.73, 302.89°)
OKLaboklab(36.62% 0.0146 -0.1766)
OKLCHoklch(36.62% 0.177 274.7)
XYZxyz(7.4696, 4.2638, 30.5602)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2799 #959927
analogous
#275C99 #2B2799 #642799
triadic
#2B2799 #992B27 #27992B
tetradic
#2B2799 #99275C #959927 #279964
square
#2B2799 #99275C #959927 #279964
split-complementary
#2B2799 #996427 #5C9927
monochromatic
#100E37 #1D1B68 #2B2799 #3933CA #6763D7

Accessibility & contrast

On white

11.33
#2B2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2B2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2799
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2799#FFFFFF#000000##FFFFFF
##2B27991.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b2799;
/* rgb */ color: rgb(43, 39, 153);
/* oklch */ color: oklch(36.6% 0.177 274.7);
Tailwind
colors: {
  custom: {
    50: '#7663b8',
    500: '#2b2799',
    950: '#000000',
  },
}
SCSS
$custom: #2b2799;
$custom-light: #7663b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2799",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 242.105,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36623,
    "c": 0.1772,
    "h": 274.7
  },
  "luminance": 0.04265
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B2799

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

Preview Lab → · Contrast checker → · Palette generator →

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