#2B218F#2B218F

#2B218F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.171 H 276.8°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2B218F
RGBrgb(43, 33, 143)
HSLhsl(245, 63%, 35%)
HSVhsv(245, 77%, 56%)
CMYKcmyk(69.9%, 76.9%, 0%, 43.9%)
CIE-LABlab(22.25, 39.58, -58.66)
CIE-LCHlch(22.25, 70.77, 304.01°)
OKLaboklab(34.69% 0.0201 -0.1695)
OKLCHoklch(34.69% 0.171 276.8)
XYZxyz(6.4964, 3.5839, 26.3307)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B218F #858F21
analogous
#214E8F #2B218F #62218F
triadic
#2B218F #8F2B21 #218F2B
tetradic
#2B218F #8F214E #858F21 #218F62
square
#2B218F #8F214E #858F21 #218F62
split-complementary
#2B218F #8F6221 #4E8F21
monochromatic
#0D0A2C #1C165D #2B218F #3A2CC1 #5F53D7

Accessibility & contrast

On white

12.23
#2B218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B218F
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B218F#FFFFFF#000000##FFFFFF
##2B218F1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b218f;
/* rgb */ color: rgb(43, 33, 143);
/* oklch */ color: oklch(34.7% 0.171 276.8);
Tailwind
colors: {
  custom: {
    50: '#745eb1',
    500: '#2b218f',
    950: '#000000',
  },
}
SCSS
$custom: #2b218f;
$custom-light: #745eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b218f",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 245.455,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34691,
    "c": 0.17072,
    "h": 276.8
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#2B218F
secondary
#B1BB51
accent
#E642D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B218F

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

Preview Lab → · Contrast checker → · Palette generator →

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