#2B2B79#2B2B79

#2B2B79 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.129 H 277.1°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2B2B79
RGBrgb(43, 43, 121)
HSLhsl(240, 48%, 32%)
HSVhsv(240, 64%, 47%)
CMYKcmyk(64.5%, 64.5%, 0%, 52.5%)
CIE-LABlab(22.38, 25.72, -44.61)
CIE-LCHlch(22.38, 51.50, 299.97°)
OKLaboklab(34.14% 0.0159 -0.1284)
OKLCHoklch(34.14% 0.129 277.1)
XYZxyz(5.3102, 3.6214, 18.5046)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B79 #79792B
analogous
#2B5279 #2B2B79 #522B79
triadic
#2B2B79 #792B2B #2B792B
tetradic
#2B2B79 #792B52 #79792B #2B7952
square
#2B2B79 #792B52 #79792B #2B7952
split-complementary
#2B2B79 #79522B #52792B
monochromatic
#0B0B1F #1B1B4C #2B2B79 #3B3BA6 #5A5AC4

Accessibility & contrast

On white

12.18
#2B2B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2B2B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B79
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B79#FFFFFF#000000##FFFFFF
##2B2B791.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b2b79;
/* rgb */ color: rgb(43, 43, 121);
/* oklch */ color: oklch(34.1% 0.129 277.1);
Tailwind
colors: {
  custom: {
    50: '#6e64a0',
    500: '#2b2b79',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b79;
$custom-light: #6e64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b79",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34135,
    "c": 0.12941,
    "h": 277.1
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#2B2B79
secondary
#AAAA56
accent
#D751D7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #2B2B79

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

Preview Lab → · Contrast checker → · Palette generator →

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