#2E38B3#2E38B3

#2E38B3 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.191 H 271.4°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2E38B3
RGBrgb(46, 56, 179)
HSLhsl(235, 59%, 44%)
HSVhsv(235, 74%, 70%)
CMYKcmyk(74.3%, 68.7%, 0%, 29.8%)
CIE-LABlab(31.03, 38.54, -66.07)
CIE-LCHlch(31.03, 76.48, 300.26°)
OKLaboklab(42.12% 0.0047 -0.1911)
OKLCHoklch(42.12% 0.191 271.4)
XYZxyz(10.6748, 6.6627, 43.3625)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E38B3 #B3A92E
analogous
#2E7BB3 #2E38B3 #672EB3
triadic
#2E38B3 #B32E38 #38B32E
tetradic
#2E38B3 #B32E7B #B3A92E #2EB367
square
#2E38B3 #B32E7B #B3A92E #2EB367
split-complementary
#2E38B3 #B3672E #7BB32E
monochromatic
#151A52 #212982 #2E38B3 #4D57D1 #7E85DE

Accessibility & contrast

On white

9.00
#2E38B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2E38B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E38B3
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E38B3#FFFFFF#000000##FFFFFF
##2E38B31.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e38b3;
/* rgb */ color: rgb(46, 56, 179);
/* oklch */ color: oklch(42.1% 0.191 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b6fcb',
    500: '#2e38b3',
    950: '#000000',
  },
}
SCSS
$custom: #2e38b3;
$custom-light: #7b6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e38b3",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 235.489,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42119,
    "c": 0.19118,
    "h": 271.4
  },
  "luminance": 0.06664
}

Semantic roles & 50–950 ramp

primary
#2E38B3
secondary
#C6C076
accent
#D746E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2E38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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