#2E238E#2E238E

#2E238E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.167 H 278.0°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2E238E
RGBrgb(46, 35, 142)
HSLhsl(246, 60%, 35%)
HSVhsv(246, 75%, 56%)
CMYKcmyk(67.6%, 75.4%, 0%, 44.3%)
CIE-LABlab(22.78, 38.46, -57.16)
CIE-LCHlch(22.78, 68.90, 303.94°)
OKLaboklab(35.1% 0.0233 -0.1651)
OKLCHoklch(35.1% 0.167 278)
XYZxyz(6.6087, 3.7353, 25.9587)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E238E #838E23
analogous
#234E8E #2E238E #63238E
triadic
#2E238E #8E2E23 #238E2E
tetradic
#2E238E #8E234E #838E23 #238E63
square
#2E238E #8E234E #838E23 #238E63
split-complementary
#2E238E #8E6323 #4E8E23
monochromatic
#0E0B2C #1E175D #2E238E #3E2FBF #6356D5

Accessibility & contrast

On white

12.02
#2E238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E238E
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E238E#FFFFFF#000000##FFFFFF
##2E238E1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e238e;
/* rgb */ color: rgb(46, 35, 142);
/* oklch */ color: oklch(35.1% 0.167 278.0);
Tailwind
colors: {
  custom: {
    50: '#7560b0',
    500: '#2e238e',
    950: '#000000',
  },
}
SCSS
$custom: #2e238e;
$custom-light: #7560b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e238e",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 246.168,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35095,
    "c": 0.16671,
    "h": 278
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#2E238E
secondary
#AFB953
accent
#E444D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E238E

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

Preview Lab → · Contrast checker → · Palette generator →

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