#2B229E#2B229E

#2B229E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.188 H 274.9°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2B229E
RGBrgb(43, 34, 158)
HSLhsl(244, 65%, 38%)
HSVhsv(244, 78%, 62%)
CMYKcmyk(72.8%, 78.5%, 0%, 38%)
CIE-LABlab(24.08, 43.93, -64.87)
CIE-LCHlch(24.08, 78.35, 304.11°)
OKLaboklab(36.47% 0.0161 -0.1876)
OKLCHoklch(36.47% 0.188 274.9)
XYZxyz(7.7378, 4.1255, 32.7296)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B229E #959E22
analogous
#22579E #2B229E #69229E
triadic
#2B229E #9E2B22 #229E2B
tetradic
#2B229E #9E2257 #959E22 #229E69
square
#2B229E #9E2257 #959E22 #229E69
split-complementary
#2B229E #9E6922 #579E22
monochromatic
#100C39 #1D176C #2B229E #392DD0 #675EDC

Accessibility & contrast

On white

11.51
#2B229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2B229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B229E
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B229E#FFFFFF#000000##FFFFFF
##2B229E1.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b229e;
/* rgb */ color: rgb(43, 34, 158);
/* oklch */ color: oklch(36.5% 0.188 274.9);
Tailwind
colors: {
  custom: {
    50: '#7760bc',
    500: '#2b229e',
    950: '#000000',
  },
}
SCSS
$custom: #2b229e;
$custom-light: #7760bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b229e",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 244.355,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3647,
    "c": 0.18828,
    "h": 274.9
  },
  "luminance": 0.04126
}

Semantic roles & 50–950 ramp

primary
#2B229E
secondary
#BAC15B
accent
#E840DB
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B229E

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

Preview Lab → · Contrast checker → · Palette generator →

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