#2B227D#2B227D

#2B227D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.146 H 279.1°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2B227D
RGBrgb(43, 34, 125)
HSLhsl(246, 57%, 31%)
HSVhsv(246, 73%, 49%)
CMYKcmyk(65.6%, 72.8%, 0%, 51%)
CIE-LABlab(20.59, 32.94, -50.09)
CIE-LCHlch(20.59, 59.95, 303.33°)
OKLaboklab(32.95% 0.0232 -0.1445)
OKLCHoklch(32.95% 0.146 279.1)
XYZxyz(5.2688, 3.1379, 19.7261)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B227D #747D22
analogous
#22467D #2B227D #58227D
triadic
#2B227D #7D2B22 #227D2B
tetradic
#2B227D #7D2246 #747D22 #227D58
square
#2B227D #7D2246 #747D22 #227D58
split-complementary
#2B227D #7D5822 #467D22
monochromatic
#0A081D #1A154D #2B227D #3C2FAD #584BCE

Accessibility & contrast

On white

12.90
#2B227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B227D
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B227D#FFFFFF#000000##FFFFFF
##2B227D1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b227d;
/* rgb */ color: rgb(43, 34, 125);
/* oklch */ color: oklch(33.0% 0.146 279.1);
Tailwind
colors: {
  custom: {
    50: '#705ea4',
    500: '#2b227d',
    950: '#000000',
  },
}
SCSS
$custom: #2b227d;
$custom-light: #705ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b227d",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 245.934,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32952,
    "c": 0.14635,
    "h": 279.1
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

primary
#2B227D
secondary
#A6B04B
accent
#E047D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B227D

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

Preview Lab → · Contrast checker → · Palette generator →

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