#2B2BAB#2B2BAB

#2B2BAB is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.196 H 272.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2B2BAB
RGBrgb(43, 43, 171)
HSLhsl(240, 60%, 42%)
HSVhsv(240, 75%, 67%)
CMYKcmyk(74.9%, 74.9%, 0%, 32.9%)
CIE-LABlab(27.24, 43.25, -67.52)
CIE-LCHlch(27.24, 80.18, 302.64°)
OKLaboklab(39.12% 0.0092 -0.1954)
OKLCHoklch(39.12% 0.196 272.7)
XYZxyz(9.2084, 5.1807, 39.0349)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2BAB #ABAB2B
analogous
#2B6BAB #2B2BAB #6B2BAB
triadic
#2B2BAB #AB2B2B #2BAB2B
tetradic
#2B2BAB #AB2B6B #ABAB2B #2BAB6B
square
#2B2BAB #AB2B6B #ABAB2B #2BAB6B
split-complementary
#2B2BAB #AB6B2B #6BAB2B
monochromatic
#121249 #1F1F7A #2B2BAB #4343D0 #7474DC

Accessibility & contrast

On white

10.31
#2B2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2B2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2BAB
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2BAB#FFFFFF#000000##FFFFFF
##2B2BAB1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b2bab;
/* rgb */ color: rgb(43, 43, 171);
/* oklch */ color: oklch(39.1% 0.196 272.7);
Tailwind
colors: {
  custom: {
    50: '#7a66c5',
    500: '#2b2bab',
    950: '#000000',
  },
}
SCSS
$custom: #2b2bab;
$custom-light: #7a66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2bab",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 240,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39119,
    "c": 0.19562,
    "h": 272.7
  },
  "luminance": 0.05182
}

Semantic roles & 50–950 ramp

primary
#2B2BAB
secondary
#C4C46E
accent
#E345E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2B2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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