#2B2896#2B2896

#2B2896 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.172 H 274.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2B2896
RGBrgb(43, 40, 150)
HSLhsl(242, 58%, 37%)
HSVhsv(242, 73%, 59%)
CMYKcmyk(71.3%, 73.3%, 0%, 41.2%)
CIE-LABlab(24.43, 37.88, -59.40)
CIE-LCHlch(24.43, 70.45, 302.53°)
OKLaboklab(36.46% 0.0146 -0.1717)
OKLCHoklch(36.46% 0.172 274.9)
XYZxyz(7.2583, 4.2325, 29.2827)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2896 #939628
analogous
#285C96 #2B2896 #622896
triadic
#2B2896 #962B28 #28962B
tetradic
#2B2896 #96285C #939628 #289662
square
#2B2896 #96285C #939628 #289662
split-complementary
#2B2896 #966228 #5C9628
monochromatic
#0F0E35 #1D1B66 #2B2896 #3935C6 #6663D5

Accessibility & contrast

On white

11.37
#2B2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2B2896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2896
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2896#FFFFFF#000000##FFFFFF
##2B28961.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b2896;
/* rgb */ color: rgb(43, 40, 150);
/* oklch */ color: oklch(36.5% 0.172 274.9);
Tailwind
colors: {
  custom: {
    50: '#7563b6',
    500: '#2b2896',
    950: '#000000',
  },
}
SCSS
$custom: #2b2896;
$custom-light: #7563b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2896",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 241.636,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36458,
    "c": 0.17233,
    "h": 274.9
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#2B2896
secondary
#B9BB5F
accent
#E147DD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2B2896

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

Preview Lab → · Contrast checker → · Palette generator →

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