#2B3791#2B3791

#2B3791 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.148 H 271.7°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#2B3791
RGBrgb(43, 55, 145)
HSLhsl(233, 54%, 37%)
HSVhsv(233, 70%, 57%)
CMYKcmyk(70.3%, 62.1%, 0%, 43.1%)
CIE-LABlab(27.54, 26.50, -51.21)
CIE-LCHlch(27.54, 57.66, 297.36°)
OKLaboklab(38.58% 0.0045 -0.1477)
OKLCHoklch(38.58% 0.148 271.7)
XYZxyz(7.4716, 5.2896, 27.4098)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3791 #91852B
analogous
#2B6A91 #2B3791 #522B91
triadic
#2B3791 #912B37 #37912B
tetradic
#2B3791 #912B6A #91852B #2B9152
square
#2B3791 #912B6A #91852B #2B9152
split-complementary
#2B3791 #91522B #6A912B
monochromatic
#0F1333 #1D2562 #2B3791 #3949C0 #6572D1

Accessibility & contrast

On white

10.20
#2B3791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2B3791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3791
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3791#FFFFFF#000000##FFFFFF
##2B37911.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2b3791;
/* rgb */ color: rgb(43, 55, 145);
/* oklch */ color: oklch(38.6% 0.148 271.7);
Tailwind
colors: {
  custom: {
    50: '#726db2',
    500: '#2b3791',
    950: '#000000',
  },
}
SCSS
$custom: #2b3791;
$custom-light: #726db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3791",
  "rgb": {
    "r": 43,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 232.941,
    "s": 54.255,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38584,
    "c": 0.14776,
    "h": 271.7
  },
  "luminance": 0.0529
}

Semantic roles & 50–950 ramp

primary
#2B3791
secondary
#B8AD60
accent
#CC4ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2B3791

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

Preview Lab → · Contrast checker → · Palette generator →

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