#2E218F#2E218F

#2E218F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.170 H 278.2°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2E218F
RGBrgb(46, 33, 143)
HSLhsl(247, 63%, 35%)
HSVhsv(247, 77%, 56%)
CMYKcmyk(67.8%, 76.9%, 0%, 43.9%)
CIE-LABlab(22.48, 39.92, -58.26)
CIE-LCHlch(22.48, 70.63, 304.42°)
OKLaboklab(34.92% 0.0243 -0.1683)
OKLCHoklch(34.92% 0.17 278.2)
XYZxyz(6.6269, 3.6512, 26.3368)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E218F #828F21
analogous
#214B8F #2E218F #65218F
triadic
#2E218F #8F2E21 #218F2E
tetradic
#2E218F #8F214B #828F21 #218F65
square
#2E218F #8F214B #828F21 #218F65
split-complementary
#2E218F #8F6521 #4B8F21
monochromatic
#0E0A2C #1E165D #2E218F #3E2CC1 #6353D7

Accessibility & contrast

On white

12.14
#2E218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E218F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E218F#FFFFFF#000000##FFFFFF
##2E218F1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e218f;
/* rgb */ color: rgb(46, 33, 143);
/* oklch */ color: oklch(34.9% 0.170 278.2);
Tailwind
colors: {
  custom: {
    50: '#755fb1',
    500: '#2e218f',
    950: '#000000',
  },
}
SCSS
$custom: #2e218f;
$custom-light: #755fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e218f",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 247.091,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34919,
    "c": 0.17003,
    "h": 278.2
  },
  "luminance": 0.03652
}

Semantic roles & 50–950 ramp

primary
#2E218F
secondary
#AEBB51
accent
#E642D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E218F

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

Preview Lab → · Contrast checker → · Palette generator →

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