#2E228C#2E228C

#2E228C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.165 H 278.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2E228C
RGBrgb(46, 34, 140)
HSLhsl(247, 61%, 34%)
HSVhsv(247, 76%, 55%)
CMYKcmyk(67.1%, 75.7%, 0%, 45.1%)
CIE-LABlab(22.37, 38.37, -56.59)
CIE-LCHlch(22.37, 68.37, 304.14°)
OKLaboklab(34.74% 0.0244 -0.1634)
OKLCHoklch(34.74% 0.165 278.5)
XYZxyz(6.4308, 3.6178, 25.1653)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E228C #808C22
analogous
#224B8C #2E228C #63228C
triadic
#2E228C #8C2E22 #228C2E
tetradic
#2E228C #8C224B #808C22 #228C63
square
#2E228C #8C224B #808C22 #228C63
split-complementary
#2E228C #8C6322 #4B8C22
monochromatic
#0E0A2A #1E165B #2E228C #3E2EBD #6253D5

Accessibility & contrast

On white

12.18
#2E228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2E228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E228C
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E228C#FFFFFF#000000##FFFFFF
##2E228C1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e228c;
/* rgb */ color: rgb(46, 34, 140);
/* oklch */ color: oklch(34.7% 0.165 278.5);
Tailwind
colors: {
  custom: {
    50: '#745faf',
    500: '#2e228c',
    950: '#000000',
  },
}
SCSS
$custom: #2e228c;
$custom-light: #745faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e228c",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 246.792,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34742,
    "c": 0.16522,
    "h": 278.5
  },
  "luminance": 0.03618
}

Semantic roles & 50–950 ramp

primary
#2E228C
secondary
#ADB951
accent
#E444D2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E228C

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

Preview Lab → · Contrast checker → · Palette generator →

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