#2B3397#2B3397

#2B3397 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.161 H 272.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2B3397
RGBrgb(43, 51, 151)
HSLhsl(236, 56%, 38%)
HSVhsv(236, 72%, 59%)
CMYKcmyk(71.5%, 66.2%, 0%, 40.8%)
CIE-LABlab(27.06, 31.35, -55.68)
CIE-LCHlch(27.06, 63.90, 299.38°)
OKLaboklab(38.39% 0.0072 -0.1608)
OKLCHoklch(38.39% 0.161 272.6)
XYZxyz(7.7641, 5.1149, 29.8502)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3397 #978F2B
analogous
#2B6997 #2B3397 #592B97
triadic
#2B3397 #972B33 #33972B
tetradic
#2B3397 #972B69 #978F2B #2B9759
square
#2B3397 #972B69 #978F2B #2B9759
split-complementary
#2B3397 #97592B #69972B
monochromatic
#101338 #1D2367 #2B3397 #3943C7 #6870D4

Accessibility & contrast

On white

10.38
#2B3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2B3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3397
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3397#FFFFFF#000000##FFFFFF
##2B33971.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b3397;
/* rgb */ color: rgb(43, 51, 151);
/* oklch */ color: oklch(38.4% 0.161 272.6);
Tailwind
colors: {
  custom: {
    50: '#746bb7',
    500: '#2b3397',
    950: '#000000',
  },
}
SCSS
$custom: #2b3397;
$custom-light: #746bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3397",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 235.556,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3839,
    "c": 0.16101,
    "h": 272.6
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#2B3397
secondary
#BBB463
accent
#D449DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B3397

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

Preview Lab → · Contrast checker → · Palette generator →

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