#2E38AB#2E38AB

#2E38AB is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.3% C 0.181 H 271.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#2E38AB
RGBrgb(46, 56, 171)
HSLhsl(235, 58%, 43%)
HSVhsv(235, 73%, 67%)
CMYKcmyk(73.1%, 67.3%, 0%, 32.9%)
CIE-LABlab(30.28, 35.70, -62.52)
CIE-LCHlch(30.28, 72.00, 299.73°)
OKLaboklab(41.35% 0.0055 -0.1808)
OKLCHoklch(41.35% 0.181 271.7)
XYZxyz(9.8891, 6.3485, 39.2244)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E38AB #ABA12E
analogous
#2E76AB #2E38AB #622EAB
triadic
#2E38AB #AB2E38 #38AB2E
tetradic
#2E38AB #AB2E76 #ABA12E #2EAB62
square
#2E38AB #AB2E76 #ABA12E #2EAB62
split-complementary
#2E38AB #AB622E #76AB2E
monochromatic
#14184B #21287B #2E38AB #4853CE #7980DB

Accessibility & contrast

On white

9.25
#2E38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2E38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E38AB
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E38AB#FFFFFF#000000##FFFFFF
##2E38AB1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e38ab;
/* rgb */ color: rgb(46, 56, 171);
/* oklch */ color: oklch(41.3% 0.181 271.7);
Tailwind
colors: {
  custom: {
    50: '#796fc5',
    500: '#2e38ab',
    950: '#000000',
  },
}
SCSS
$custom: #2e38ab;
$custom-light: #796fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e38ab",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 235.2,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41345,
    "c": 0.18085,
    "h": 271.7
  },
  "luminance": 0.06349
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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