#2B3399#2B3399

#2B3399 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.164 H 272.5°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2B3399
RGBrgb(43, 51, 153)
HSLhsl(236, 56%, 38%)
HSVhsv(236, 72%, 60%)
CMYKcmyk(71.9%, 66.7%, 0%, 40%)
CIE-LABlab(27.24, 32.07, -56.61)
CIE-LCHlch(27.24, 65.06, 299.53°)
OKLaboklab(38.58% 0.0071 -0.1636)
OKLCHoklch(38.58% 0.164 272.5)
XYZxyz(7.9279, 5.1804, 30.7129)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3399 #99912B
analogous
#2B6A99 #2B3399 #5A2B99
triadic
#2B3399 #992B33 #33992B
tetradic
#2B3399 #992B6A #99912B #2B995A
square
#2B3399 #992B6A #99912B #2B995A
split-complementary
#2B3399 #995A2B #6A992B
monochromatic
#101339 #1E2369 #2B3399 #3A44C8 #6971D5

Accessibility & contrast

On white

10.31
#2B3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2B3399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3399
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3399#FFFFFF#000000##FFFFFF
##2B33991.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b3399;
/* rgb */ color: rgb(43, 51, 153);
/* oklch */ color: oklch(38.6% 0.164 272.5);
Tailwind
colors: {
  custom: {
    50: '#746bb8',
    500: '#2b3399',
    950: '#000000',
  },
}
SCSS
$custom: #2b3399;
$custom-light: #746bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3399",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 235.636,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3858,
    "c": 0.16371,
    "h": 272.5
  },
  "luminance": 0.05181
}

Semantic roles & 50–950 ramp

primary
#2B3399
secondary
#BCB564
accent
#D448DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B3399

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

Preview Lab → · Contrast checker → · Palette generator →

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