#2B2BA5#2B2BA5

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

Color values

HEX#2B2BA5
RGBrgb(43, 43, 165)
HSLhsl(240, 59%, 41%)
HSVhsv(240, 74%, 65%)
CMYKcmyk(73.9%, 73.9%, 0%, 35.3%)
CIE-LABlab(26.61, 41.22, -64.94)
CIE-LCHlch(26.61, 76.92, 302.41°)
OKLaboklab(38.48% 0.0103 -0.1879)
OKLCHoklch(38.48% 0.188 273.1)
XYZxyz(8.6494, 4.9571, 36.0910)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2BA5 #A5A52B
analogous
#2B68A5 #2B2BA5 #682BA5
triadic
#2B2BA5 #A52B2B #2BA52B
tetradic
#2B2BA5 #A52B68 #A5A52B #2BA568
square
#2B2BA5 #A52B68 #A5A52B #2BA568
split-complementary
#2B2BA5 #A5682B #68A52B
monochromatic
#121244 #1E1E74 #2B2BA5 #4040CD #7171DA

Accessibility & contrast

On white

10.54
#2B2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2B2BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2BA5
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2BA5#FFFFFF#000000##FFFFFF
##2B2BA51.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b2ba5;
/* rgb */ color: rgb(43, 43, 165);
/* oklch */ color: oklch(38.5% 0.188 273.1);
Tailwind
colors: {
  custom: {
    50: '#7866c1',
    500: '#2b2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #2b2ba5;
$custom-light: #7866c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2ba5",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 240,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38482,
    "c": 0.18818,
    "h": 273.1
  },
  "luminance": 0.04958
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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