#2E338F#2E338F

#2E338F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.149 H 274.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#2E338F
RGBrgb(46, 51, 143)
HSLhsl(237, 51%, 37%)
HSVhsv(237, 68%, 56%)
CMYKcmyk(67.8%, 64.3%, 0%, 43.9%)
CIE-LABlab(26.54, 28.86, -51.61)
CIE-LCHlch(26.54, 59.13, 299.22°)
OKLaboklab(37.84% 0.0113 -0.1488)
OKLCHoklch(37.84% 0.149 274.3)
XYZxyz(7.2668, 4.9310, 26.5501)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E338F #8F8A2E
analogous
#2E648F #2E338F #5A2E8F
triadic
#2E338F #8F2E33 #338F2E
tetradic
#2E338F #8F2E64 #8F8A2E #2E8F5A
square
#2E338F #8F2E64 #8F8A2E #2E8F5A
split-complementary
#2E338F #8F5A2E #648F2E
monochromatic
#101232 #1F2261 #2E338F #3D44BD #696ECF

Accessibility & contrast

On white

10.57
#2E338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2E338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E338F
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E338F#FFFFFF#000000##FFFFFF
##2E338F1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#004A5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e338f;
/* rgb */ color: rgb(46, 51, 143);
/* oklch */ color: oklch(37.8% 0.149 274.3);
Tailwind
colors: {
  custom: {
    50: '#736bb1',
    500: '#2e338f',
    950: '#000000',
  },
}
SCSS
$custom: #2e338f;
$custom-light: #736bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e338f",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 236.907,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37838,
    "c": 0.14925,
    "h": 274.3
  },
  "luminance": 0.04932
}

Semantic roles & 50–950 ramp

primary
#2E338F
secondary
#B6B163
accent
#D34DDB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2E338F

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

Preview Lab → · Contrast checker → · Palette generator →

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