#2B227E#2B227E

#2B227E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.148 H 279.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2B227E
RGBrgb(43, 34, 126)
HSLhsl(246, 58%, 31%)
HSVhsv(246, 73%, 49%)
CMYKcmyk(65.9%, 73%, 0%, 50.6%)
CIE-LABlab(20.69, 33.28, -50.56)
CIE-LCHlch(20.69, 60.53, 303.36°)
OKLaboklab(33.05% 0.023 -0.1459)
OKLCHoklch(33.05% 0.148 279)
XYZxyz(5.3330, 3.1636, 20.0642)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B227E #757E22
analogous
#22477E #2B227E #59227E
triadic
#2B227E #7E2B22 #227E2B
tetradic
#2B227E #7E2247 #757E22 #227E59
square
#2B227E #7E2247 #757E22 #227E59
split-complementary
#2B227E #7E5922 #477E22
monochromatic
#0A081E #1B154E #2B227E #3B2FAE #594CCF

Accessibility & contrast

On white

12.86
#2B227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B227E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B227E#FFFFFF#000000##FFFFFF
##2B227E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b227e;
/* rgb */ color: rgb(43, 34, 126);
/* oklch */ color: oklch(33.1% 0.148 279.0);
Tailwind
colors: {
  custom: {
    50: '#705ea4',
    500: '#2b227e',
    950: '#000000',
  },
}
SCSS
$custom: #2b227e;
$custom-light: #705ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b227e",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 245.87,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33053,
    "c": 0.14768,
    "h": 279
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#2B227E
secondary
#A7B14B
accent
#E147D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B227E

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

Preview Lab → · Contrast checker → · Palette generator →

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