#2E38B8#2E38B8

#2E38B8 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.198 H 271.2°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#2E38B8
RGBrgb(46, 56, 184)
HSLhsl(236, 60%, 45%)
HSVhsv(236, 75%, 72%)
CMYKcmyk(75%, 69.6%, 0%, 27.8%)
CIE-LABlab(31.51, 40.29, -68.24)
CIE-LCHlch(31.51, 79.25, 300.55°)
OKLaboklab(42.61% 0.0042 -0.1975)
OKLCHoklch(42.61% 0.198 271.2)
XYZxyz(11.1897, 6.8687, 46.0742)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E38B8 #B8AE2E
analogous
#2E7DB8 #2E38B8 #692EB8
triadic
#2E38B8 #B82E38 #38B82E
tetradic
#2E38B8 #B82E7D #B8AE2E #2EB869
square
#2E38B8 #B82E7D #B8AE2E #2EB869
split-complementary
#2E38B8 #B8692E #7DB82E
monochromatic
#161A56 #222987 #2E38B8 #5059D3 #8188DF

Accessibility & contrast

On white

8.85
#2E38B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2E38B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E38B8
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E38B8#FFFFFF#000000##FFFFFF
##2E38B81.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2e38b8;
/* rgb */ color: rgb(46, 56, 184);
/* oklch */ color: oklch(42.6% 0.198 271.2);
Tailwind
colors: {
  custom: {
    50: '#7d6fce',
    500: '#2e38b8',
    950: '#000000',
  },
}
SCSS
$custom: #2e38b8;
$custom-light: #7d6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e38b8",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 235.652,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42611,
    "c": 0.19752,
    "h": 271.2
  },
  "luminance": 0.0687
}

Semantic roles & 50–950 ramp

primary
#2E38B8
secondary
#C8C379
accent
#D845E3
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2E38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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