#2B3878#2B3878

#2B3878 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.7% C 0.110 H 271.4°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2B3878
RGBrgb(43, 56, 120)
HSLhsl(230, 47%, 32%)
HSVhsv(230, 64%, 47%)
CMYKcmyk(64.2%, 53.3%, 0%, 52.9%)
CIE-LABlab(25.86, 16.43, -38.34)
CIE-LCHlch(25.86, 41.72, 293.20°)
OKLaboklab(36.7% 0.0026 -0.1098)
OKLCHoklch(36.7% 0.11 271.4)
XYZxyz(5.7995, 4.6975, 18.3668)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3878 #786B2B
analogous
#2B5F78 #2B3878 #452B78
triadic
#2B3878 #782B38 #38782B
tetradic
#2B3878 #782B5F #786B2B #2B7845
square
#2B3878 #782B5F #786B2B #2B7845
split-complementary
#2B3878 #78452B #5F782B
monochromatic
#0B0E1E #1B234B #2B3878 #3B4DA5 #5A6CC4

Accessibility & contrast

On white

10.83
#2B3878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2B3878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3878
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3878#FFFFFF#000000##FFFFFF
##2B38781.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14417A
Deuteranopia (green-blind)
#003A77
Tritanopia (blue-blind)
#004752
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b3878;
/* rgb */ color: rgb(43, 56, 120);
/* oklch */ color: oklch(36.7% 0.110 271.4);
Tailwind
colors: {
  custom: {
    50: '#6d6e9f',
    500: '#2b3878',
    950: '#000000',
  },
}
SCSS
$custom: #2b3878;
$custom-light: #6d6e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3878",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 120
  },
  "hsl": {
    "h": 229.87,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36701,
    "c": 0.10988,
    "h": 271.4
  },
  "luminance": 0.04698
}

Semantic roles & 50–950 ramp

primary
#2B3878
secondary
#AA9B55
accent
#C051D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2B3878

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

Preview Lab → · Contrast checker → · Palette generator →

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