#2B3797#2B3797

#2B3797 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.156 H 271.6°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2B3797
RGBrgb(43, 55, 151)
HSLhsl(233, 56%, 38%)
HSVhsv(233, 72%, 59%)
CMYKcmyk(71.5%, 63.6%, 0%, 40.8%)
CIE-LABlab(28.06, 28.72, -54.05)
CIE-LCHlch(28.06, 61.21, 297.99°)
OKLaboklab(39.12% 0.0043 -0.156)
OKLCHoklch(39.12% 0.156 271.6)
XYZxyz(7.9465, 5.4796, 29.9110)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3797 #978B2B
analogous
#2B6D97 #2B3797 #552B97
triadic
#2B3797 #972B37 #37972B
tetradic
#2B3797 #972B6D #978B2B #2B9755
square
#2B3797 #972B6D #978B2B #2B9755
split-complementary
#2B3797 #97552B #6D972B
monochromatic
#101438 #1D2667 #2B3797 #3948C7 #6874D4

Accessibility & contrast

On white

10.02
#2B3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2B3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3797
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3797#FFFFFF#000000##FFFFFF
##2B37971.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b3797;
/* rgb */ color: rgb(43, 55, 151);
/* oklch */ color: oklch(39.1% 0.156 271.6);
Tailwind
colors: {
  custom: {
    50: '#746db6',
    500: '#2b3797',
    950: '#000000',
  },
}
SCSS
$custom: #2b3797;
$custom-light: #746db6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3797",
  "rgb": {
    "r": 43,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 233.333,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39124,
    "c": 0.15609,
    "h": 271.6
  },
  "luminance": 0.0548
}

Semantic roles & 50–950 ramp

primary
#2B3797
secondary
#BBB163
accent
#CE49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2B3797

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

Preview Lab → · Contrast checker → · Palette generator →

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