#2B227A#2B227A

#2B227A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.142 H 279.6°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#2B227A
RGBrgb(43, 34, 122)
HSLhsl(246, 56%, 31%)
HSVhsv(246, 72%, 48%)
CMYKcmyk(64.8%, 72.1%, 0%, 52.2%)
CIE-LABlab(20.29, 31.91, -48.66)
CIE-LCHlch(20.29, 58.19, 303.25°)
OKLaboklab(32.65% 0.0238 -0.1403)
OKLCHoklch(32.65% 0.142 279.6)
XYZxyz(5.0800, 3.0624, 18.7320)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B227A #717A22
analogous
#22457A #2B227A #57227A
triadic
#2B227A #7A2B22 #227A2B
tetradic
#2B227A #7A2245 #717A22 #227A57
square
#2B227A #7A2245 #717A22 #227A57
split-complementary
#2B227A #7A5722 #457A22
monochromatic
#09071A #1A154A #2B227A #3C2FAA #574ACD

Accessibility & contrast

On white

13.02
#2B227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2B227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B227A
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B227A#FFFFFF#000000##FFFFFF
##2B227A1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b227a;
/* rgb */ color: rgb(43, 34, 122);
/* oklch */ color: oklch(32.6% 0.142 279.6);
Tailwind
colors: {
  custom: {
    50: '#6f5ea1',
    500: '#2b227a',
    950: '#000000',
  },
}
SCSS
$custom: #2b227a;
$custom-light: #6f5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b227a",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 246.136,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3265,
    "c": 0.14232,
    "h": 279.6
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#2B227A
secondary
#A3AD4B
accent
#E048D0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B227A

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

Preview Lab → · Contrast checker → · Palette generator →

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