#2B2397#2B2397

#2B2397 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.179 H 275.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#2B2397
RGBrgb(43, 35, 151)
HSLhsl(244, 62%, 36%)
HSVhsv(244, 77%, 59%)
CMYKcmyk(71.5%, 76.8%, 0%, 40.8%)
CIE-LABlab(23.50, 41.11, -61.53)
CIE-LCHlch(23.50, 74.00, 303.74°)
OKLaboklab(35.84% 0.0172 -0.1779)
OKLCHoklch(35.84% 0.179 275.5)
XYZxyz(7.1814, 3.9493, 29.6560)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2397 #8F9723
analogous
#235597 #2B2397 #652397
triadic
#2B2397 #972B23 #23972B
tetradic
#2B2397 #972355 #8F9723 #239765
square
#2B2397 #972355 #8F9723 #239765
split-complementary
#2B2397 #976523 #559723
monochromatic
#0F0C34 #1D1765 #2B2397 #392FC9 #645BD9

Accessibility & contrast

On white

11.73
#2B2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2B2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2397
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2397#FFFFFF#000000##FFFFFF
##2B23971.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b2397;
/* rgb */ color: rgb(43, 35, 151);
/* oklch */ color: oklch(35.8% 0.179 275.5);
Tailwind
colors: {
  custom: {
    50: '#7560b7',
    500: '#2b2397',
    950: '#000000',
  },
}
SCSS
$custom: #2b2397;
$custom-light: #7560b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2397",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 244.138,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35836,
    "c": 0.17873,
    "h": 275.5
  },
  "luminance": 0.0395
}

Semantic roles & 50–950 ramp

primary
#2B2397
secondary
#B7BE58
accent
#E542DA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2397

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

Preview Lab → · Contrast checker → · Palette generator →

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