#2E38AC#2E38AC

#2E38AC is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.182 H 271.7°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#2E38AC
RGBrgb(46, 56, 172)
HSLhsl(235, 58%, 43%)
HSVhsv(235, 73%, 67%)
CMYKcmyk(73.3%, 67.4%, 0%, 32.5%)
CIE-LABlab(30.37, 36.06, -62.97)
CIE-LCHlch(30.37, 72.56, 299.80°)
OKLaboklab(41.44% 0.0054 -0.1821)
OKLCHoklch(41.44% 0.182 271.7)
XYZxyz(9.9848, 6.3867, 39.7283)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E38AC #ACA22E
analogous
#2E77AC #2E38AC #632EAC
triadic
#2E38AC #AC2E38 #38AC2E
tetradic
#2E38AC #AC2E77 #ACA22E #2EAC63
square
#2E38AC #AC2E77 #ACA22E #2EAC63
split-complementary
#2E38AC #AC632E #77AC2E
monochromatic
#14194B #21287C #2E38AC #4953CE #7981DB

Accessibility & contrast

On white

9.22
#2E38AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2E38AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E38AC
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E38AC#FFFFFF#000000##FFFFFF
##2E38AC1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0042AA
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e38ac;
/* rgb */ color: rgb(46, 56, 172);
/* oklch */ color: oklch(41.4% 0.182 271.7);
Tailwind
colors: {
  custom: {
    50: '#7a6fc6',
    500: '#2e38ac',
    950: '#000000',
  },
}
SCSS
$custom: #2e38ac;
$custom-light: #7a6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e38ac",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 235.238,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41441,
    "c": 0.18216,
    "h": 271.7
  },
  "luminance": 0.06388
}

Semantic roles & 50–950 ramp

primary
#2E38AC
secondary
#C3BD72
accent
#D547E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2E38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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