#2B2CA2#2B2CA2

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

Color values

HEX#2B2CA2
RGBrgb(43, 44, 162)
HSLhsl(239, 58%, 40%)
HSVhsv(239, 73%, 64%)
CMYKcmyk(73.5%, 72.8%, 0%, 36.5%)
CIE-LABlab(26.51, 39.61, -63.29)
CIE-LCHlch(26.51, 74.66, 302.04°)
OKLaboklab(38.32% 0.0103 -0.1831)
OKLCHoklch(38.32% 0.183 273.2)
XYZxyz(8.4163, 4.9227, 34.6820)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2CA2 #A2A12B
analogous
#2B67A2 #2B2CA2 #662BA2
triadic
#2B2CA2 #A22B2C #2CA22B
tetradic
#2B2CA2 #A22B67 #A2A12B #2BA266
square
#2B2CA2 #A22B67 #A2A12B #2BA266
split-complementary
#2B2CA2 #A2662B #67A22B
monochromatic
#111241 #1E1F72 #2B2CA2 #3E40CC #6F70D9

Accessibility & contrast

On white

10.58
#2B2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2CA2
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2CA2#FFFFFF#000000##FFFFFF
##2B2CA21.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A5
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b2ca2;
/* rgb */ color: rgb(43, 44, 162);
/* oklch */ color: oklch(38.3% 0.183 273.2);
Tailwind
colors: {
  custom: {
    50: '#7766bf',
    500: '#2b2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #2b2ca2;
$custom-light: #7766bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2ca2",
  "rgb": {
    "r": 43,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 239.496,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38319,
    "c": 0.18337,
    "h": 273.2
  },
  "luminance": 0.04924
}

Semantic roles & 50–950 ramp

primary
#2B2CA2
secondary
#C0BF69
accent
#E047E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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