#2B229B#2B229B

#2B229B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.185 H 275.2°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#2B229B
RGBrgb(43, 34, 155)
HSLhsl(244, 64%, 37%)
HSVhsv(244, 78%, 61%)
CMYKcmyk(72.3%, 78.1%, 0%, 39.2%)
CIE-LABlab(23.75, 42.96, -63.58)
CIE-LCHlch(23.75, 76.74, 304.05°)
OKLaboklab(36.14% 0.0168 -0.1839)
OKLCHoklch(36.14% 0.185 275.2)
XYZxyz(7.4827, 4.0235, 31.3863)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B229B #929B22
analogous
#22569B #2B229B #68229B
triadic
#2B229B #9B2B22 #229B2B
tetradic
#2B229B #9B2256 #929B22 #229B68
square
#2B229B #9B2256 #929B22 #229B68
split-complementary
#2B229B #9B6822 #569B22
monochromatic
#0F0C37 #1D1769 #2B229B #392DCD #665CDB

Accessibility & contrast

On white

11.64
#2B229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2B229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B229B
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B229B#FFFFFF#000000##FFFFFF
##2B229B1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b229b;
/* rgb */ color: rgb(43, 34, 155);
/* oklch */ color: oklch(36.1% 0.185 275.2);
Tailwind
colors: {
  custom: {
    50: '#7760ba',
    500: '#2b229b',
    950: '#000000',
  },
}
SCSS
$custom: #2b229b;
$custom-light: #7760ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b229b",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 244.463,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36138,
    "c": 0.18462,
    "h": 275.2
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#2B229B
secondary
#B8C059
accent
#E741DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B229B

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

Preview Lab → · Contrast checker → · Palette generator →

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