#2B3A79#2B3A79

#2B3A79 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.2% C 0.109 H 270.3°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2B3A79
RGBrgb(43, 58, 121)
HSLhsl(228, 48%, 32%)
HSVhsv(228, 64%, 47%)
CMYKcmyk(64.5%, 52.1%, 0%, 52.5%)
CIE-LABlab(26.50, 15.42, -37.93)
CIE-LCHlch(26.50, 40.94, 292.13°)
OKLaboklab(37.22% 0.0006 -0.1086)
OKLCHoklch(37.22% 0.109 270.3)
XYZxyz(5.9593, 4.9197, 18.7210)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3A79 #796A2B
analogous
#2B6179 #2B3A79 #432B79
triadic
#2B3A79 #792B3A #3A792B
tetradic
#2B3A79 #792B61 #796A2B #2B7943
square
#2B3A79 #792B61 #796A2B #2B7943
split-complementary
#2B3A79 #79432B #61792B
monochromatic
#0B0F1F #1B244C #2B3A79 #3B50A6 #5A6EC4

Accessibility & contrast

On white

10.58
#2B3A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2B3A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3A79
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3A79#FFFFFF#000000##FFFFFF
##2B3A791.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18427B
Deuteranopia (green-blind)
#063B78
Tritanopia (blue-blind)
#004953
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b3a79;
/* rgb */ color: rgb(43, 58, 121);
/* oklch */ color: oklch(37.2% 0.109 270.3);
Tailwind
colors: {
  custom: {
    50: '#6d6fa0',
    500: '#2b3a79',
    950: '#000000',
  },
}
SCSS
$custom: #2b3a79;
$custom-light: #6d6fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3a79",
  "rgb": {
    "r": 43,
    "g": 58,
    "b": 121
  },
  "hsl": {
    "h": 228.462,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37216,
    "c": 0.1086,
    "h": 270.3
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

primary
#2B3A79
secondary
#AA9A56
accent
#BD51D7
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #2B3A79

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

Preview Lab → · Contrast checker → · Palette generator →

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