#2B2997#2B2997

#2B2997 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.173 H 274.6°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2B2997
RGBrgb(43, 41, 151)
HSLhsl(241, 57%, 38%)
HSVhsv(241, 73%, 59%)
CMYKcmyk(71.5%, 72.8%, 0%, 40.8%)
CIE-LABlab(24.74, 37.63, -59.49)
CIE-LCHlch(24.74, 70.39, 302.31°)
OKLaboklab(36.72% 0.0138 -0.172)
OKLCHoklch(36.72% 0.173 274.6)
XYZxyz(7.3733, 4.3331, 29.7200)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2997 #959729
analogous
#295E97 #2B2997 #622997
triadic
#2B2997 #972B29 #29972B
tetradic
#2B2997 #97295E #959729 #299762
square
#2B2997 #97295E #959729 #299762
split-complementary
#2B2997 #976229 #5E9729
monochromatic
#100F37 #1D1C67 #2B2997 #3936C7 #6765D5

Accessibility & contrast

On white

11.25
#2B2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2B2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2997
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2997#FFFFFF#000000##FFFFFF
##2B29971.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b2997;
/* rgb */ color: rgb(43, 41, 151);
/* oklch */ color: oklch(36.7% 0.173 274.6);
Tailwind
colors: {
  custom: {
    50: '#7564b7',
    500: '#2b2997',
    950: '#000000',
  },
}
SCSS
$custom: #2b2997;
$custom-light: #7564b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2997",
  "rgb": {
    "r": 43,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 241.091,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36716,
    "c": 0.17253,
    "h": 274.6
  },
  "luminance": 0.04334
}

Semantic roles & 50–950 ramp

primary
#2B2997
secondary
#BABB61
accent
#E147DE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2B2997

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

Preview Lab → · Contrast checker → · Palette generator →

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