#2E227C#2E227C

#2E227C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.144 H 281.1°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2E227C
RGBrgb(46, 34, 124)
HSLhsl(248, 57%, 31%)
HSVhsv(248, 73%, 49%)
CMYKcmyk(62.9%, 72.6%, 0%, 51.4%)
CIE-LABlab(20.75, 33.04, -49.17)
CIE-LCHlch(20.75, 59.25, 303.90°)
OKLaboklab(33.1% 0.0278 -0.1417)
OKLCHoklch(33.1% 0.144 281.1)
XYZxyz(5.3357, 3.1798, 19.3975)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E227C #707C22
analogous
#22437C #2E227C #5B227C
triadic
#2E227C #7C2E22 #227C2E
tetradic
#2E227C #7C2243 #707C22 #227C5B
square
#2E227C #7C2243 #707C22 #227C5B
split-complementary
#2E227C #7C5B22 #437C22
monochromatic
#0A081C #1C154C #2E227C #402FAC #5C4BCE

Accessibility & contrast

On white

12.84
#2E227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E227C
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E227C#FFFFFF#000000##FFFFFF
##2E227C1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e227c;
/* rgb */ color: rgb(46, 34, 124);
/* oklch */ color: oklch(33.1% 0.144 281.1);
Tailwind
colors: {
  custom: {
    50: '#715ea3',
    500: '#2e227c',
    950: '#000000',
  },
}
SCSS
$custom: #2e227c;
$custom-light: #715ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e227c",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 248,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33103,
    "c": 0.14442,
    "h": 281.1
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#2E227C
secondary
#A1AF4B
accent
#E048CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E227C

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

Preview Lab → · Contrast checker → · Palette generator →

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