#2E228F#2E228F

#2E228F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.169 H 278.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2E228F
RGBrgb(46, 34, 143)
HSLhsl(247, 62%, 35%)
HSVhsv(247, 76%, 56%)
CMYKcmyk(67.8%, 76.2%, 0%, 43.9%)
CIE-LABlab(22.68, 39.36, -57.94)
CIE-LCHlch(22.68, 70.04, 304.19°)
OKLaboklab(35.06% 0.0237 -0.1673)
OKLCHoklch(35.06% 0.169 278.1)
XYZxyz(6.6551, 3.7075, 26.3462)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E228F #838F22
analogous
#224C8F #2E228F #65228F
triadic
#2E228F #8F2E22 #228F2E
tetradic
#2E228F #8F224C #838F22 #228F65
square
#2E228F #8F224C #838F22 #228F65
split-complementary
#2E228F #8F6522 #4C8F22
monochromatic
#0E0A2C #1E165E #2E228F #3E2EC0 #6355D7

Accessibility & contrast

On white

12.06
#2E228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E228F
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E228F#FFFFFF#000000##FFFFFF
##2E228F1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e228f;
/* rgb */ color: rgb(46, 34, 143);
/* oklch */ color: oklch(35.1% 0.169 278.1);
Tailwind
colors: {
  custom: {
    50: '#755fb1',
    500: '#2e228f',
    950: '#000000',
  },
}
SCSS
$custom: #2e228f;
$custom-light: #755fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e228f",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 246.606,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35058,
    "c": 0.16901,
    "h": 278.1
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#2E228F
secondary
#AFBA52
accent
#E543D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E228F

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

Preview Lab → · Contrast checker → · Palette generator →

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