#2B2791#2B2791

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

Color values

HEX#2B2791
RGBrgb(43, 39, 145)
HSLhsl(242, 58%, 36%)
HSVhsv(242, 73%, 57%)
CMYKcmyk(70.3%, 73.1%, 0%, 43.1%)
CIE-LABlab(23.70, 36.77, -57.51)
CIE-LCHlch(23.70, 68.26, 302.59°)
OKLaboklab(35.79% 0.0161 -0.1662)
OKLCHoklch(35.79% 0.167 275.5)
XYZxyz(6.8309, 4.0083, 27.1963)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2791 #8D9127
analogous
#275891 #2B2791 #602791
triadic
#2B2791 #912B27 #27912B
tetradic
#2B2791 #912758 #8D9127 #279160
square
#2B2791 #912758 #8D9127 #279160
split-complementary
#2B2791 #916027 #589127
monochromatic
#0E0D31 #1D1A61 #2B2791 #3934C1 #635FD4

Accessibility & contrast

On white

11.66
#2B2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2B2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2791
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2791#FFFFFF#000000##FFFFFF
##2B27911.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b2791;
/* rgb */ color: rgb(43, 39, 145);
/* oklch */ color: oklch(35.8% 0.167 275.5);
Tailwind
colors: {
  custom: {
    50: '#7462b2',
    500: '#2b2791',
    950: '#000000',
  },
}
SCSS
$custom: #2b2791;
$custom-light: #7462b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2791",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 242.264,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35786,
    "c": 0.16698,
    "h": 275.5
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#2B2791
secondary
#B6B95B
accent
#E147DB
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2B2791

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

Preview Lab → · Contrast checker → · Palette generator →

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