#2B228B#2B228B

#2B228B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.165 H 277.1°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2B228B
RGBrgb(43, 34, 139)
HSLhsl(245, 61%, 34%)
HSVhsv(245, 76%, 55%)
CMYKcmyk(69.1%, 75.5%, 0%, 45.5%)
CIE-LABlab(22.02, 37.68, -56.54)
CIE-LCHlch(22.02, 67.95, 303.68°)
OKLaboklab(34.41% 0.0204 -0.1633)
OKLCHoklch(34.41% 0.165 277.1)
XYZxyz(6.2270, 3.5212, 24.7726)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B228B #828B22
analogous
#224E8B #2B228B #60228B
triadic
#2B228B #8B2B22 #228B2B
tetradic
#2B228B #8B224E #828B22 #228B60
square
#2B228B #8B224E #828B22 #228B60
split-complementary
#2B228B #8B6022 #4E8B22
monochromatic
#0D0A29 #1C165A #2B228B #3A2EBC #5E53D5

Accessibility & contrast

On white

12.32
#2B228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2B228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B228B
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B228B#FFFFFF#000000##FFFFFF
##2B228B1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b228b;
/* rgb */ color: rgb(43, 34, 139);
/* oklch */ color: oklch(34.4% 0.165 277.1);
Tailwind
colors: {
  custom: {
    50: '#735fae',
    500: '#2b228b',
    950: '#000000',
  },
}
SCSS
$custom: #2b228b;
$custom-light: #735fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b228b",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 245.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34405,
    "c": 0.16462,
    "h": 277.1
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

primary
#2B228B
secondary
#B0B850
accent
#E444D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B228B

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

Preview Lab → · Contrast checker → · Palette generator →

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