#2B2B97#2B2B97

#2B2B97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.170 H 274.2°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#2B2B97
RGBrgb(43, 43, 151)
HSLhsl(240, 56%, 38%)
HSVhsv(240, 72%, 59%)
CMYKcmyk(71.5%, 71.5%, 0%, 40.8%)
CIE-LABlab(25.18, 36.41, -58.76)
CIE-LCHlch(25.18, 69.13, 301.78°)
OKLaboklab(37.03% 0.0126 -0.1699)
OKLCHoklch(37.03% 0.17 274.2)
XYZxyz(7.4442, 4.4750, 29.7436)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B97 #97972B
analogous
#2B6197 #2B2B97 #612B97
triadic
#2B2B97 #972B2B #2B972B
tetradic
#2B2B97 #972B61 #97972B #2B9761
square
#2B2B97 #972B61 #97972B #2B9761
split-complementary
#2B2B97 #97612B #61972B
monochromatic
#101038 #1D1D67 #2B2B97 #3939C7 #6868D4

Accessibility & contrast

On white

11.08
#2B2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2B2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B97
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B97#FFFFFF#000000##FFFFFF
##2B2B971.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b2b97;
/* rgb */ color: rgb(43, 43, 151);
/* oklch */ color: oklch(37.0% 0.170 274.2);
Tailwind
colors: {
  custom: {
    50: '#7565b7',
    500: '#2b2b97',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b97;
$custom-light: #7565b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b97",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37031,
    "c": 0.17034,
    "h": 274.2
  },
  "luminance": 0.04476
}

Semantic roles & 50–950 ramp

primary
#2B2B97
secondary
#BBBB63
accent
#DF49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2B2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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