#2B228D#2B228D

#2B228D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.167 H 276.9°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2B228D
RGBrgb(43, 34, 141)
HSLhsl(245, 61%, 34%)
HSVhsv(245, 76%, 55%)
CMYKcmyk(69.5%, 75.9%, 0%, 44.7%)
CIE-LABlab(22.23, 38.35, -57.44)
CIE-LCHlch(22.23, 69.07, 303.73°)
OKLaboklab(34.62% 0.02 -0.166)
OKLCHoklch(34.62% 0.167 276.9)
XYZxyz(6.3744, 3.5802, 25.5493)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B228D #848D22
analogous
#224F8D #2B228D #61228D
triadic
#2B228D #8D2B22 #228D2B
tetradic
#2B228D #8D224F #848D22 #228D61
square
#2B228D #8D224F #848D22 #228D61
split-complementary
#2B228D #8D6122 #4F8D22
monochromatic
#0D0A2A #1C165C #2B228D #3A2EBE #5F54D6

Accessibility & contrast

On white

12.24
#2B228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2B228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B228D
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B228D#FFFFFF#000000##FFFFFF
##2B228D1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b228d;
/* rgb */ color: rgb(43, 34, 141);
/* oklch */ color: oklch(34.6% 0.167 276.9);
Tailwind
colors: {
  custom: {
    50: '#735faf',
    500: '#2b228d',
    950: '#000000',
  },
}
SCSS
$custom: #2b228d;
$custom-light: #735faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b228d",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 245.047,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34618,
    "c": 0.16717,
    "h": 276.9
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#2B228D
secondary
#B1B951
accent
#E444D7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2B228D

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

Preview Lab → · Contrast checker → · Palette generator →

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