#2B3897#2B3897

#2B3897 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.155 H 271.3°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#2B3897
RGBrgb(43, 56, 151)
HSLhsl(233, 56%, 38%)
HSVhsv(233, 72%, 59%)
CMYKcmyk(71.5%, 62.9%, 0%, 40.8%)
CIE-LABlab(28.32, 28.06, -53.63)
CIE-LCHlch(28.32, 60.53, 297.62°)
OKLaboklab(39.31% 0.0035 -0.1548)
OKLCHoklch(39.31% 0.155 271.3)
XYZxyz(7.9945, 5.5755, 29.9270)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3897 #978A2B
analogous
#2B6E97 #2B3897 #542B97
triadic
#2B3897 #972B38 #38972B
tetradic
#2B3897 #972B6E #978A2B #2B9754
square
#2B3897 #972B6E #978A2B #2B9754
split-complementary
#2B3897 #97542B #6E972B
monochromatic
#101538 #1D2667 #2B3897 #394AC7 #6875D4

Accessibility & contrast

On white

9.93
#2B3897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2B3897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3897
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3897#FFFFFF#000000##FFFFFF
##2B38971.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b3897;
/* rgb */ color: rgb(43, 56, 151);
/* oklch */ color: oklch(39.3% 0.155 271.3);
Tailwind
colors: {
  custom: {
    50: '#746eb6',
    500: '#2b3897',
    950: '#000000',
  },
}
SCSS
$custom: #2b3897;
$custom-light: #746eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3897",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 232.778,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39312,
    "c": 0.15483,
    "h": 271.3
  },
  "luminance": 0.05576
}

Semantic roles & 50–950 ramp

primary
#2B3897
secondary
#BBB063
accent
#CD49DF
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2B3897

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

Preview Lab → · Contrast checker → · Palette generator →

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