#2B2B99#2B2B99

#2B2B99 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.173 H 274.1°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#2B2B99
RGBrgb(43, 43, 153)
HSLhsl(240, 56%, 38%)
HSVhsv(240, 72%, 60%)
CMYKcmyk(71.9%, 71.9%, 0%, 40%)
CIE-LABlab(25.38, 37.11, -59.66)
CIE-LCHlch(25.38, 70.26, 301.88°)
OKLaboklab(37.24% 0.0123 -0.1725)
OKLCHoklch(37.24% 0.173 274.1)
XYZxyz(7.6080, 4.5405, 30.6063)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B99 #99992B
analogous
#2B6299 #2B2B99 #622B99
triadic
#2B2B99 #992B2B #2B992B
tetradic
#2B2B99 #992B62 #99992B #2B9962
square
#2B2B99 #992B62 #99992B #2B9962
split-complementary
#2B2B99 #99622B #62992B
monochromatic
#101039 #1E1E69 #2B2B99 #3A3AC8 #6969D5

Accessibility & contrast

On white

11.01
#2B2B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2B2B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B99
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B99#FFFFFF#000000##FFFFFF
##2B2B991.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b2b99;
/* rgb */ color: rgb(43, 43, 153);
/* oklch */ color: oklch(37.2% 0.173 274.1);
Tailwind
colors: {
  custom: {
    50: '#7565b8',
    500: '#2b2b99',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b99;
$custom-light: #7565b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b99",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 240,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37235,
    "c": 0.17294,
    "h": 274.1
  },
  "luminance": 0.04541
}

Semantic roles & 50–950 ramp

primary
#2B2B99
secondary
#BCBC64
accent
#DF48DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2B2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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