#2B2BA6#2B2BA6

#2B2BA6 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.189 H 273.1°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2B2BA6
RGBrgb(43, 43, 166)
HSLhsl(240, 59%, 41%)
HSVhsv(240, 74%, 65%)
CMYKcmyk(74.1%, 74.1%, 0%, 34.9%)
CIE-LABlab(26.72, 41.56, -65.38)
CIE-LCHlch(26.72, 77.47, 302.45°)
OKLaboklab(38.59% 0.0101 -0.1892)
OKLCHoklch(38.59% 0.189 273.1)
XYZxyz(8.7408, 4.9936, 36.5722)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2BA6 #A6A62B
analogous
#2B68A6 #2B2BA6 #682BA6
triadic
#2B2BA6 #A62B2B #2BA62B
tetradic
#2B2BA6 #A62B68 #A6A62B #2BA668
square
#2B2BA6 #A62B68 #A6A62B #2BA668
split-complementary
#2B2BA6 #A6682B #68A62B
monochromatic
#121245 #1E1E75 #2B2BA6 #4141CE #7171DA

Accessibility & contrast

On white

10.51
#2B2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2B2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2BA6
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2BA6#FFFFFF#000000##FFFFFF
##2B2BA61.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b2ba6;
/* rgb */ color: rgb(43, 43, 166);
/* oklch */ color: oklch(38.6% 0.189 273.1);
Tailwind
colors: {
  custom: {
    50: '#7866c2',
    500: '#2b2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #2b2ba6;
$custom-light: #7866c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2ba6",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 240,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38587,
    "c": 0.18942,
    "h": 273.1
  },
  "luminance": 0.04995
}

Semantic roles & 50–950 ramp

primary
#2B2BA6
secondary
#C1C16B
accent
#E246E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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