#2B227B#2B227B

#2B227B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.144 H 279.5°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#2B227B
RGBrgb(43, 34, 123)
HSLhsl(246, 57%, 31%)
HSVhsv(246, 72%, 48%)
CMYKcmyk(65%, 72.4%, 0%, 51.8%)
CIE-LABlab(20.39, 32.25, -49.14)
CIE-LCHlch(20.39, 58.78, 303.28°)
OKLaboklab(32.75% 0.0236 -0.1417)
OKLCHoklch(32.75% 0.144 279.5)
XYZxyz(5.1423, 3.0873, 19.0600)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B227B #727B22
analogous
#22457B #2B227B #57227B
triadic
#2B227B #7B2B22 #227B2B
tetradic
#2B227B #7B2245 #727B22 #227B57
square
#2B227B #7B2245 #727B22 #227B57
split-complementary
#2B227B #7B5722 #457B22
monochromatic
#09071B #1A154B #2B227B #3C2FAB #584ACD

Accessibility & contrast

On white

12.98
#2B227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B227B
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B227B#FFFFFF#000000##FFFFFF
##2B227B1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b227b;
/* rgb */ color: rgb(43, 34, 123);
/* oklch */ color: oklch(32.8% 0.144 279.5);
Tailwind
colors: {
  custom: {
    50: '#6f5ea2',
    500: '#2b227b',
    950: '#000000',
  },
}
SCSS
$custom: #2b227b;
$custom-light: #6f5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b227b",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 246.067,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3275,
    "c": 0.14367,
    "h": 279.5
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#2B227B
secondary
#A4AE4B
accent
#E048D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B227B

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

Preview Lab → · Contrast checker → · Palette generator →

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