#2E38AF#2E38AF

#2E38AF is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.186 H 271.6°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#2E38AF
RGBrgb(46, 56, 175)
HSLhsl(235, 58%, 43%)
HSVhsv(235, 74%, 69%)
CMYKcmyk(73.7%, 68%, 0%, 31.4%)
CIE-LABlab(30.65, 37.13, -64.30)
CIE-LCHlch(30.65, 74.25, 300.00°)
OKLaboklab(41.73% 0.0051 -0.186)
OKLCHoklch(41.73% 0.186 271.6)
XYZxyz(10.2761, 6.5033, 41.2628)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E38AF #AFA52E
analogous
#2E78AF #2E38AF #642EAF
triadic
#2E38AF #AF2E38 #38AF2E
tetradic
#2E38AF #AF2E78 #AFA52E #2EAF64
square
#2E38AF #AF2E78 #AFA52E #2EAF64
split-complementary
#2E38AF #AF642E #78AF2E
monochromatic
#15194E #21287F #2E38AF #4B55D0 #7B83DC

Accessibility & contrast

On white

9.13
#2E38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2E38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E38AF
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E38AF#FFFFFF#000000##FFFFFF
##2E38AF1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2e38af;
/* rgb */ color: rgb(46, 56, 175);
/* oklch */ color: oklch(41.7% 0.186 271.6);
Tailwind
colors: {
  custom: {
    50: '#7a6fc8',
    500: '#2e38af',
    950: '#000000',
  },
}
SCSS
$custom: #2e38af;
$custom-light: #7a6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e38af",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 235.349,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4173,
    "c": 0.18605,
    "h": 271.6
  },
  "luminance": 0.06504
}

Semantic roles & 50–950 ramp

primary
#2E38AF
secondary
#C5BE74
accent
#D646E2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2E38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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