#2B229F#2B229F

#2B229F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.189 H 274.8°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#2B229F
RGBrgb(43, 34, 159)
HSLhsl(244, 65%, 38%)
HSVhsv(244, 79%, 62%)
CMYKcmyk(73%, 78.6%, 0%, 37.6%)
CIE-LABlab(24.19, 44.26, -65.29)
CIE-LCHlch(24.19, 78.88, 304.13°)
OKLaboklab(36.58% 0.0158 -0.1888)
OKLCHoklch(36.58% 0.189 274.8)
XYZxyz(7.8242, 4.1601, 33.1848)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B229F #969F22
analogous
#22579F #2B229F #69229F
triadic
#2B229F #9F2B22 #229F2B
tetradic
#2B229F #9F2257 #969F22 #229F69
square
#2B229F #9F2257 #969F22 #229F69
split-complementary
#2B229F #9F6922 #579F22
monochromatic
#100C3A #1D176D #2B229F #392DD1 #685FDD

Accessibility & contrast

On white

11.46
#2B229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B229F
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B229F#FFFFFF#000000##FFFFFF
##2B229F1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b229f;
/* rgb */ color: rgb(43, 34, 159);
/* oklch */ color: oklch(36.6% 0.189 274.8);
Tailwind
colors: {
  custom: {
    50: '#7760bd',
    500: '#2b229f',
    950: '#000000',
  },
}
SCSS
$custom: #2b229f;
$custom-light: #7760bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b229f",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 244.32,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36581,
    "c": 0.18949,
    "h": 274.8
  },
  "luminance": 0.04161
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B229F

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

Preview Lab → · Contrast checker → · Palette generator →

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