#2B3799#2B3799

#2B3799 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.3% C 0.159 H 271.5°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2B3799
RGBrgb(43, 55, 153)
HSLhsl(233, 56%, 38%)
HSVhsv(233, 72%, 60%)
CMYKcmyk(71.9%, 64.1%, 0%, 40%)
CIE-LABlab(28.23, 29.46, -54.98)
CIE-LCHlch(28.23, 62.38, 298.18°)
OKLaboklab(39.31% 0.0042 -0.1588)
OKLCHoklch(39.31% 0.159 271.5)
XYZxyz(8.1103, 5.5451, 30.7737)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3799 #998D2B
analogous
#2B6E99 #2B3799 #562B99
triadic
#2B3799 #992B37 #37992B
tetradic
#2B3799 #992B6E #998D2B #2B9956
square
#2B3799 #992B6E #998D2B #2B9956
split-complementary
#2B3799 #99562B #6E992B
monochromatic
#101539 #1E2669 #2B3799 #3A49C8 #6975D5

Accessibility & contrast

On white

9.96
#2B3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2B3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3799
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3799#FFFFFF#000000##FFFFFF
##2B37991.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2b3799;
/* rgb */ color: rgb(43, 55, 153);
/* oklch */ color: oklch(39.3% 0.159 271.5);
Tailwind
colors: {
  custom: {
    50: '#746db8',
    500: '#2b3799',
    950: '#000000',
  },
}
SCSS
$custom: #2b3799;
$custom-light: #746db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3799",
  "rgb": {
    "r": 43,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 233.455,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39307,
    "c": 0.15883,
    "h": 271.5
  },
  "luminance": 0.05546
}

Semantic roles & 50–950 ramp

primary
#2B3799
secondary
#BCB264
accent
#CF48DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2B3799

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

Preview Lab → · Contrast checker → · Palette generator →

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