#2B226F#2B226F

#2B226F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.127 H 281.6°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#2B226F
RGBrgb(43, 34, 111)
HSLhsl(247, 53%, 28%)
HSVhsv(247, 69%, 44%)
CMYKcmyk(61.3%, 69.4%, 0%, 56.5%)
CIE-LABlab(19.25, 28.11, -43.31)
CIE-LCHlch(19.25, 51.63, 302.98°)
OKLaboklab(31.57% 0.0255 -0.1246)
OKLCHoklch(31.57% 0.127 281.6)
XYZxyz(4.4366, 2.8050, 15.3435)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B226F #666F22
analogous
#223F6F #2B226F #51226F
triadic
#2B226F #6F2B22 #226F2B
tetradic
#2B226F #6F223F #666F22 #226F51
square
#2B226F #6F223F #666F22 #226F51
split-complementary
#2B226F #6F5122 #3F6F22
monochromatic
#090717 #191440 #2B226F #3D309E #5445C6

Accessibility & contrast

On white

13.45
#2B226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2B226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B226F
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B226F#FFFFFF#000000##FFFFFF
##2B226F1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#023645
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b226f;
/* rgb */ color: rgb(43, 34, 111);
/* oklch */ color: oklch(31.6% 0.127 281.6);
Tailwind
colors: {
  custom: {
    50: '#6d5e99',
    500: '#2b226f',
    950: '#000000',
  },
}
SCSS
$custom: #2b226f;
$custom-light: #6d5e99;
$custom-dark: #000000;
JSON
{
  "hex": "#2b226f",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 247.013,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31574,
    "c": 0.12721,
    "h": 281.6
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#2B226F
secondary
#98A24A
accent
#DD4BCC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2B226F

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

Preview Lab → · Contrast checker → · Palette generator →

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