#2E337C#2E337C

#2E337C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.122 H 275.5°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2E337C
RGBrgb(46, 51, 124)
HSLhsl(236, 46%, 33%)
HSVhsv(236, 63%, 49%)
CMYKcmyk(62.9%, 58.9%, 0%, 51.4%)
CIE-LABlab(24.96, 21.94, -42.30)
CIE-LCHlch(24.96, 47.66, 297.41°)
OKLaboklab(36.18% 0.0117 -0.1215)
OKLCHoklch(36.18% 0.122 275.5)
XYZxyz(5.9474, 4.4033, 19.6014)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E337C #7C772E
analogous
#2E5A7C #2E337C #502E7C
triadic
#2E337C #7C2E33 #337C2E
tetradic
#2E337C #7C2E5A #7C772E #2E7C50
square
#2E337C #7C2E5A #7C772E #2E7C50
split-complementary
#2E337C #7C502E #5A7C2E
monochromatic
#0D0E23 #1D214F #2E337C #3F45A9 #6067C4

Accessibility & contrast

On white

11.17
#2E337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2E337C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E337C
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E337C#FFFFFF#000000##FFFFFF
##2E337C1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e337c;
/* rgb */ color: rgb(46, 51, 124);
/* oklch */ color: oklch(36.2% 0.122 275.5);
Tailwind
colors: {
  custom: {
    50: '#6f6aa2',
    500: '#2e337c',
    950: '#000000',
  },
}
SCSS
$custom: #2e337c;
$custom-light: #6f6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e337c",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 236.154,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36181,
    "c": 0.12204,
    "h": 275.5
  },
  "luminance": 0.04404
}

Semantic roles & 50–950 ramp

primary
#2E337C
secondary
#ABA65B
accent
#CD52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E337C

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

Preview Lab → · Contrast checker → · Palette generator →

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