#2B3780#2B3780

#2B3780 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.1% C 0.123 H 272.0°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2B3780
RGBrgb(43, 55, 128)
HSLhsl(232, 50%, 34%)
HSVhsv(232, 66%, 50%)
CMYKcmyk(66.4%, 57%, 0%, 49.8%)
CIE-LABlab(26.17, 20.13, -42.88)
CIE-LCHlch(26.17, 47.37, 295.15°)
OKLaboklab(37.13% 0.0042 -0.1232)
OKLCHoklch(37.13% 0.123 272)
XYZxyz(6.2574, 4.8039, 21.0154)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3780 #80742B
analogous
#2B6180 #2B3780 #492B80
triadic
#2B3780 #802B37 #37802B
tetradic
#2B3780 #802B61 #80742B #2B8049
square
#2B3780 #802B61 #80742B #2B8049
split-complementary
#2B3780 #80492B #61802B
monochromatic
#0C1024 #1C2352 #2B3780 #3A4BAE #5D6CC9

Accessibility & contrast

On white

10.71
#2B3780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2B3780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3780
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3780#FFFFFF#000000##FFFFFF
##2B37801.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004283
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#004856
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b3780;
/* rgb */ color: rgb(43, 55, 128);
/* oklch */ color: oklch(37.1% 0.123 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e6da5',
    500: '#2b3780',
    950: '#000000',
  },
}
SCSS
$custom: #2b3780;
$custom-light: #6e6da5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3780",
  "rgb": {
    "r": 43,
    "g": 55,
    "b": 128
  },
  "hsl": {
    "h": 231.529,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37127,
    "c": 0.12327,
    "h": 272
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#2B3780
secondary
#AEA258
accent
#C64FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2B3780

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

Preview Lab → · Contrast checker → · Palette generator →

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