#2B229D#2B229D

#2B229D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.187 H 275.0°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#2B229D
RGBrgb(43, 34, 157)
HSLhsl(244, 64%, 37%)
HSVhsv(244, 78%, 62%)
CMYKcmyk(72.6%, 78.3%, 0%, 38.4%)
CIE-LABlab(23.97, 43.61, -64.44)
CIE-LCHlch(23.97, 77.81, 304.09°)
OKLaboklab(36.36% 0.0163 -0.1863)
OKLCHoklch(36.36% 0.187 275)
XYZxyz(7.6521, 4.0912, 32.2782)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B229D #949D22
analogous
#22579D #2B229D #68229D
triadic
#2B229D #9D2B22 #229D2B
tetradic
#2B229D #9D2257 #949D22 #229D68
square
#2B229D #9D2257 #949D22 #229D68
split-complementary
#2B229D #9D6822 #579D22
monochromatic
#0F0C38 #1D176B #2B229D #392DCF #675DDC

Accessibility & contrast

On white

11.55
#2B229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2B229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B229D
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B229D#FFFFFF#000000##FFFFFF
##2B229D1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b229d;
/* rgb */ color: rgb(43, 34, 157);
/* oklch */ color: oklch(36.4% 0.187 275.0);
Tailwind
colors: {
  custom: {
    50: '#7760bb',
    500: '#2b229d',
    950: '#000000',
  },
}
SCSS
$custom: #2b229d;
$custom-light: #7760bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b229d",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 244.39,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36359,
    "c": 0.18706,
    "h": 275
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#2B229D
secondary
#B9C15A
accent
#E740DB
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B229D

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

Preview Lab → · Contrast checker → · Palette generator →

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