#2E2270#2E2270

#2E2270 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.128 H 283.4°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2E2270
RGBrgb(46, 34, 112)
HSLhsl(249, 53%, 29%)
HSVhsv(249, 70%, 44%)
CMYKcmyk(58.9%, 69.6%, 0%, 56.1%)
CIE-LABlab(19.62, 28.99, -43.34)
CIE-LCHlch(19.62, 52.14, 303.78°)
OKLaboklab(31.94% 0.0298 -0.1246)
OKLCHoklch(31.94% 0.128 283.4)
XYZxyz(4.6225, 2.8945, 15.6412)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2270 #647022
analogous
#223D70 #2E2270 #552270
triadic
#2E2270 #702E22 #22702E
tetradic
#2E2270 #70223D #647022 #227055
square
#2E2270 #70223D #647022 #227055
split-complementary
#2E2270 #705522 #3D7022
monochromatic
#0A0717 #1B1441 #2E2270 #41309F #5A46C7

Accessibility & contrast

On white

13.30
#2E2270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E2270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2270
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2270#FFFFFF#000000##FFFFFF
##2E22701.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#0D3646
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e2270;
/* rgb */ color: rgb(46, 34, 112);
/* oklch */ color: oklch(31.9% 0.128 283.4);
Tailwind
colors: {
  custom: {
    50: '#6e5e9a',
    500: '#2e2270',
    950: '#000000',
  },
}
SCSS
$custom: #2e2270;
$custom-light: #6e5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2270",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 112
  },
  "hsl": {
    "h": 249.231,
    "s": 53.425,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3194,
    "c": 0.12812,
    "h": 283.4
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#2E2270
secondary
#96A34A
accent
#DD4BC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E2270

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

Preview Lab → · Contrast checker → · Palette generator →

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