#2B229C#2B229C

#2B229C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.186 H 275.1°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2B229C
RGBrgb(43, 34, 156)
HSLhsl(244, 64%, 37%)
HSVhsv(244, 78%, 61%)
CMYKcmyk(72.4%, 78.2%, 0%, 38.8%)
CIE-LABlab(23.86, 43.29, -64.01)
CIE-LCHlch(23.86, 77.28, 304.07°)
OKLaboklab(36.25% 0.0165 -0.1851)
OKLCHoklch(36.25% 0.186 275.1)
XYZxyz(7.5671, 4.0572, 31.8304)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B229C #939C22
analogous
#22569C #2B229C #68229C
triadic
#2B229C #9C2B22 #229C2B
tetradic
#2B229C #9C2256 #939C22 #229C68
square
#2B229C #9C2256 #939C22 #229C68
split-complementary
#2B229C #9C6822 #569C22
monochromatic
#0F0C38 #1D176A #2B229C #392DCE #665DDC

Accessibility & contrast

On white

11.59
#2B229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2B229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B229C
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B229C#FFFFFF#000000##FFFFFF
##2B229C1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b229c;
/* rgb */ color: rgb(43, 34, 156);
/* oklch */ color: oklch(36.2% 0.186 275.1);
Tailwind
colors: {
  custom: {
    50: '#7760ba',
    500: '#2b229c',
    950: '#000000',
  },
}
SCSS
$custom: #2b229c;
$custom-light: #7760ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b229c",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 244.426,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36249,
    "c": 0.18585,
    "h": 275.1
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B229C

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

Preview Lab → · Contrast checker → · Palette generator →

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