#2B228C#2B228C

#2B228C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.166 H 277.0°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#2B228C
RGBrgb(43, 34, 140)
HSLhsl(245, 61%, 34%)
HSVhsv(245, 76%, 55%)
CMYKcmyk(69.3%, 75.7%, 0%, 45.1%)
CIE-LABlab(22.13, 38.02, -56.99)
CIE-LCHlch(22.13, 68.51, 303.71°)
OKLaboklab(34.51% 0.0202 -0.1647)
OKLCHoklch(34.51% 0.166 277)
XYZxyz(6.3004, 3.5505, 25.1592)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B228C #838C22
analogous
#224E8C #2B228C #60228C
triadic
#2B228C #8C2B22 #228C2B
tetradic
#2B228C #8C224E #838C22 #228C60
square
#2B228C #8C224E #838C22 #228C60
split-complementary
#2B228C #8C6022 #4E8C22
monochromatic
#0D0A2A #1C165B #2B228C #3A2EBD #5E53D5

Accessibility & contrast

On white

12.28
#2B228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2B228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B228C
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B228C#FFFFFF#000000##FFFFFF
##2B228C1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b228c;
/* rgb */ color: rgb(43, 34, 140);
/* oklch */ color: oklch(34.5% 0.166 277.0);
Tailwind
colors: {
  custom: {
    50: '#735faf',
    500: '#2b228c',
    950: '#000000',
  },
}
SCSS
$custom: #2b228c;
$custom-light: #735faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b228c",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 245.094,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34511,
    "c": 0.1659,
    "h": 277
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#2B228C
secondary
#B0B951
accent
#E444D6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B228C

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

Preview Lab → · Contrast checker → · Palette generator →

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