#2E238C#2E238C

#2E238C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.164 H 278.3°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2E238C
RGBrgb(46, 35, 140)
HSLhsl(246, 60%, 34%)
HSVhsv(246, 75%, 55%)
CMYKcmyk(67.1%, 75%, 0%, 45.1%)
CIE-LABlab(22.57, 37.80, -56.25)
CIE-LCHlch(22.57, 67.77, 303.90°)
OKLaboklab(34.89% 0.0238 -0.1624)
OKLCHoklch(34.89% 0.164 278.3)
XYZxyz(6.4598, 3.6758, 25.1749)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E238C #818C23
analogous
#234D8C #2E238C #63238C
triadic
#2E238C #8C2E23 #238C2E
tetradic
#2E238C #8C234D #818C23 #238C63
square
#2E238C #8C234D #818C23 #238C63
split-complementary
#2E238C #8C6323 #4D8C23
monochromatic
#0E0B2A #1E175B #2E238C #3E2FBD #6255D4

Accessibility & contrast

On white

12.10
#2E238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E238C
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E238C#FFFFFF#000000##FFFFFF
##2E238C1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e238c;
/* rgb */ color: rgb(46, 35, 140);
/* oklch */ color: oklch(34.9% 0.164 278.3);
Tailwind
colors: {
  custom: {
    50: '#7460af',
    500: '#2e238c',
    950: '#000000',
  },
}
SCSS
$custom: #2e238c;
$custom-light: #7460af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e238c",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 246.286,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34886,
    "c": 0.16416,
    "h": 278.3
  },
  "luminance": 0.03676
}

Semantic roles & 50–950 ramp

primary
#2E238C
secondary
#AEB852
accent
#E345D3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E238C

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

Preview Lab → · Contrast checker → · Palette generator →

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