#2E338D#2E338D

#2E338D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.146 H 274.5°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2E338D
RGBrgb(46, 51, 141)
HSLhsl(237, 51%, 37%)
HSVhsv(237, 67%, 55%)
CMYKcmyk(67.4%, 63.8%, 0%, 44.7%)
CIE-LABlab(26.36, 28.14, -50.65)
CIE-LCHlch(26.36, 57.94, 299.05°)
OKLaboklab(37.66% 0.0114 -0.146)
OKLCHoklch(37.66% 0.146 274.5)
XYZxyz(7.1167, 4.8710, 25.7593)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E338D #8D882E
analogous
#2E638D #2E338D #592E8D
triadic
#2E338D #8D2E33 #338D2E
tetradic
#2E338D #8D2E63 #8D882E #2E8D59
square
#2E338D #8D2E63 #8D882E #2E8D59
split-complementary
#2E338D #8D592E #638D2E
monochromatic
#101231 #1F225F #2E338D #3D44BB #686DCE

Accessibility & contrast

On white

10.64
#2E338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2E338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E338D
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E338D#FFFFFF#000000##FFFFFF
##2E338D1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e338d;
/* rgb */ color: rgb(46, 51, 141);
/* oklch */ color: oklch(37.7% 0.146 274.5);
Tailwind
colors: {
  custom: {
    50: '#736aaf',
    500: '#2e338d',
    950: '#000000',
  },
}
SCSS
$custom: #2e338d;
$custom-light: #736aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e338d",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 236.842,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37657,
    "c": 0.14646,
    "h": 274.5
  },
  "luminance": 0.04872
}

Semantic roles & 50–950 ramp

primary
#2E338D
secondary
#B5B062
accent
#D34EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E338D

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

Preview Lab → · Contrast checker → · Palette generator →

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