#2B2BA2#2B2BA2

#2B2BA2 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.184 H 273.4°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2B2BA2
RGBrgb(43, 43, 162)
HSLhsl(240, 58%, 40%)
HSVhsv(240, 73%, 64%)
CMYKcmyk(73.5%, 73.5%, 0%, 36.5%)
CIE-LABlab(26.30, 40.20, -63.64)
CIE-LCHlch(26.30, 75.28, 302.28°)
OKLaboklab(38.17% 0.0108 -0.1841)
OKLCHoklch(38.17% 0.184 273.4)
XYZxyz(8.3795, 4.8491, 34.6698)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2BA2 #A2A22B
analogous
#2B66A2 #2B2BA2 #662BA2
triadic
#2B2BA2 #A22B2B #2BA22B
tetradic
#2B2BA2 #A22B66 #A2A22B #2BA266
square
#2B2BA2 #A22B66 #A2A22B #2BA266
split-complementary
#2B2BA2 #A2662B #66A22B
monochromatic
#111141 #1E1E72 #2B2BA2 #3E3ECC #6F6FD9

Accessibility & contrast

On white

10.66
#2B2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2B2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2BA2
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2BA2#FFFFFF#000000##FFFFFF
##2B2BA21.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#0038A0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b2ba2;
/* rgb */ color: rgb(43, 43, 162);
/* oklch */ color: oklch(38.2% 0.184 273.4);
Tailwind
colors: {
  custom: {
    50: '#7766bf',
    500: '#2b2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #2b2ba2;
$custom-light: #7766bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2ba2",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 240,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38167,
    "c": 0.18442,
    "h": 273.4
  },
  "luminance": 0.0485
}

Semantic roles & 50–950 ramp

primary
#2B2BA2
secondary
#C0C069
accent
#E147E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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