#2E338A#2E338A

#2E338A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.4% C 0.142 H 274.7°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#2E338A
RGBrgb(46, 51, 138)
HSLhsl(237, 50%, 36%)
HSVhsv(237, 67%, 54%)
CMYKcmyk(66.7%, 63%, 0%, 45.9%)
CIE-LABlab(26.11, 27.05, -49.21)
CIE-LCHlch(26.11, 56.16, 298.80°)
OKLaboklab(37.39% 0.0115 -0.1418)
OKLCHoklch(37.39% 0.142 274.7)
XYZxyz(6.8965, 4.7829, 24.5996)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E338A #8A852E
analogous
#2E618A #2E338A #572E8A
triadic
#2E338A #8A2E33 #338A2E
tetradic
#2E338A #8A2E61 #8A852E #2E8A57
square
#2E338A #8A2E61 #8A852E #2E8A57
split-complementary
#2E338A #8A572E #618A2E
monochromatic
#0F112E #1F225C #2E338A #3D44B8 #666CCC

Accessibility & contrast

On white

10.73
#2E338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2E338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E338A
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E338A#FFFFFF#000000##FFFFFF
##2E338A1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e338a;
/* rgb */ color: rgb(46, 51, 138);
/* oklch */ color: oklch(37.4% 0.142 274.7);
Tailwind
colors: {
  custom: {
    50: '#726aad',
    500: '#2e338a',
    950: '#000000',
  },
}
SCSS
$custom: #2e338a;
$custom-light: #726aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e338a",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 236.739,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37388,
    "c": 0.14226,
    "h": 274.7
  },
  "luminance": 0.04783
}

Semantic roles & 50–950 ramp

primary
#2E338A
secondary
#B3AE61
accent
#D24EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E338A

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

Preview Lab → · Contrast checker → · Palette generator →

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