#2B227C#2B227C

#2B227C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.145 H 279.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#2B227C
RGBrgb(43, 34, 124)
HSLhsl(246, 57%, 31%)
HSVhsv(246, 73%, 49%)
CMYKcmyk(65.3%, 72.6%, 0%, 51.4%)
CIE-LABlab(20.49, 32.60, -49.61)
CIE-LCHlch(20.49, 59.36, 303.31°)
OKLaboklab(32.85% 0.0234 -0.1431)
OKLCHoklch(32.85% 0.145 279.3)
XYZxyz(5.2052, 3.1125, 19.3913)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B227C #737C22
analogous
#22467C #2B227C #58227C
triadic
#2B227C #7C2B22 #227C2B
tetradic
#2B227C #7C2246 #737C22 #227C58
square
#2B227C #7C2246 #737C22 #227C58
split-complementary
#2B227C #7C5822 #467C22
monochromatic
#0A081C #1A154C #2B227C #3C2FAC #584BCE

Accessibility & contrast

On white

12.94
#2B227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B227C
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B227C#FFFFFF#000000##FFFFFF
##2B227C1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b227c;
/* rgb */ color: rgb(43, 34, 124);
/* oklch */ color: oklch(32.9% 0.145 279.3);
Tailwind
colors: {
  custom: {
    50: '#6f5ea3',
    500: '#2b227c',
    950: '#000000',
  },
}
SCSS
$custom: #2b227c;
$custom-light: #6f5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b227c",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 246,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32851,
    "c": 0.14501,
    "h": 279.3
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B227C

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

Preview Lab → · Contrast checker → · Palette generator →

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