#2E38AA#2E38AA

#2E38AA is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.180 H 271.8°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#2E38AA
RGBrgb(46, 56, 170)
HSLhsl(235, 57%, 42%)
HSVhsv(235, 73%, 67%)
CMYKcmyk(72.9%, 67.1%, 0%, 33.3%)
CIE-LABlab(30.18, 35.35, -62.08)
CIE-LCHlch(30.18, 71.43, 299.66°)
OKLaboklab(41.25% 0.0056 -0.1795)
OKLCHoklch(41.25% 0.18 271.8)
XYZxyz(9.7941, 6.3105, 38.7243)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E38AA #AAA02E
analogous
#2E76AA #2E38AA #622EAA
triadic
#2E38AA #AA2E38 #38AA2E
tetradic
#2E38AA #AA2E76 #AAA02E #2EAA62
square
#2E38AA #AA2E76 #AAA02E #2EAA62
split-complementary
#2E38AA #AA622E #76AA2E
monochromatic
#14184A #21287A #2E38AA #4853CD #7880DA

Accessibility & contrast

On white

9.28
#2E38AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2E38AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E38AA
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E38AA#FFFFFF#000000##FFFFFF
##2E38AA1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0041A8
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e38aa;
/* rgb */ color: rgb(46, 56, 170);
/* oklch */ color: oklch(41.2% 0.180 271.8);
Tailwind
colors: {
  custom: {
    50: '#796fc4',
    500: '#2e38aa',
    950: '#000000',
  },
}
SCSS
$custom: #2e38aa;
$custom-light: #796fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e38aa",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 235.161,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41249,
    "c": 0.17955,
    "h": 271.8
  },
  "luminance": 0.06311
}

Semantic roles & 50–950 ramp

primary
#2E38AA
secondary
#C3BC71
accent
#D447E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2E38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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