#2B3398#2B3398

#2B3398 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.162 H 272.5°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#2B3398
RGBrgb(43, 51, 152)
HSLhsl(236, 56%, 38%)
HSVhsv(236, 72%, 60%)
CMYKcmyk(71.7%, 66.4%, 0%, 40.4%)
CIE-LABlab(27.15, 31.71, -56.15)
CIE-LCHlch(27.15, 64.48, 299.46°)
OKLaboklab(38.49% 0.0072 -0.1622)
OKLCHoklch(38.49% 0.162 272.5)
XYZxyz(7.8457, 5.1475, 30.2798)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3398 #98902B
analogous
#2B6998 #2B3398 #592B98
triadic
#2B3398 #982B33 #33982B
tetradic
#2B3398 #982B69 #98902B #2B9859
square
#2B3398 #982B69 #98902B #2B9859
split-complementary
#2B3398 #98592B #69982B
monochromatic
#101339 #1E2368 #2B3398 #3944C7 #6971D5

Accessibility & contrast

On white

10.35
#2B3398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2B3398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3398
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3398#FFFFFF#000000##FFFFFF
##2B33981.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b3398;
/* rgb */ color: rgb(43, 51, 152);
/* oklch */ color: oklch(38.5% 0.162 272.5);
Tailwind
colors: {
  custom: {
    50: '#746bb7',
    500: '#2b3398',
    950: '#000000',
  },
}
SCSS
$custom: #2b3398;
$custom-light: #746bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3398",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 235.596,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38485,
    "c": 0.16237,
    "h": 272.5
  },
  "luminance": 0.05148
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B3398

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

Preview Lab → · Contrast checker → · Palette generator →

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