#2E227F#2E227F

#2E227F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.148 H 280.6°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#2E227F
RGBrgb(46, 34, 127)
HSLhsl(248, 58%, 32%)
HSVhsv(248, 73%, 50%)
CMYKcmyk(63.8%, 73.2%, 0%, 50.2%)
CIE-LABlab(21.04, 34.05, -50.60)
CIE-LCHlch(21.04, 60.99, 303.94°)
OKLaboklab(33.4% 0.0272 -0.1459)
OKLCHoklch(33.4% 0.148 280.6)
XYZxyz(5.5283, 3.2568, 20.4119)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E227F #737F22
analogous
#22457F #2E227F #5D227F
triadic
#2E227F #7F2E22 #227F2E
tetradic
#2E227F #7F2245 #737F22 #227F5D
square
#2E227F #7F2245 #737F22 #227F5D
split-complementary
#2E227F #7F5D22 #457F22
monochromatic
#0B081E #1D154F #2E227F #3F2FAF #5D4CCF

Accessibility & contrast

On white

12.72
#2E227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E227F
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E227F#FFFFFF#000000##FFFFFF
##2E227F1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e227f;
/* rgb */ color: rgb(46, 34, 127);
/* oklch */ color: oklch(33.4% 0.148 280.6);
Tailwind
colors: {
  custom: {
    50: '#725ea5',
    500: '#2e227f',
    950: '#000000',
  },
}
SCSS
$custom: #2e227f;
$custom-light: #725ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e227f",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 247.742,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33403,
    "c": 0.1484,
    "h": 280.6
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#2E227F
secondary
#A4B24B
accent
#E147CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E227F

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

Preview Lab → · Contrast checker → · Palette generator →

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