#2B2BA3#2B2BA3

#2B2BA3 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.186 H 273.3°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2B2BA3
RGBrgb(43, 43, 163)
HSLhsl(240, 58%, 40%)
HSVhsv(240, 74%, 64%)
CMYKcmyk(73.6%, 73.6%, 0%, 36.1%)
CIE-LABlab(26.40, 40.55, -64.08)
CIE-LCHlch(26.40, 75.83, 302.32°)
OKLaboklab(38.27% 0.0106 -0.1854)
OKLCHoklch(38.27% 0.186 273.3)
XYZxyz(8.4688, 4.8848, 35.1398)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2BA3 #A3A32B
analogous
#2B67A3 #2B2BA3 #672BA3
triadic
#2B2BA3 #A32B2B #2BA32B
tetradic
#2B2BA3 #A32B67 #A3A32B #2BA367
square
#2B2BA3 #A32B67 #A3A32B #2BA367
split-complementary
#2B2BA3 #A3672B #67A32B
monochromatic
#111142 #1E1E73 #2B2BA3 #3F3FCC #6F6FD9

Accessibility & contrast

On white

10.62
#2B2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2BA3
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2BA3#FFFFFF#000000##FFFFFF
##2B2BA31.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#0039A1
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b2ba3;
/* rgb */ color: rgb(43, 43, 163);
/* oklch */ color: oklch(38.3% 0.186 273.3);
Tailwind
colors: {
  custom: {
    50: '#7866bf',
    500: '#2b2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #2b2ba3;
$custom-light: #7866bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2ba3",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 240,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38272,
    "c": 0.18568,
    "h": 273.3
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#2B2BA3
secondary
#C0C06A
accent
#E146E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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