#2E248C#2E248C

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

Color values

HEX#2E248C
RGBrgb(46, 36, 140)
HSLhsl(246, 59%, 35%)
HSVhsv(246, 74%, 55%)
CMYKcmyk(67.1%, 74.3%, 0%, 45.1%)
CIE-LABlab(22.78, 37.22, -55.91)
CIE-LCHlch(22.78, 67.17, 303.65°)
OKLaboklab(35.03% 0.0231 -0.1614)
OKLCHoklch(35.03% 0.163 278.1)
XYZxyz(6.4897, 3.7355, 25.1849)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E248C #828C24
analogous
#244E8C #2E248C #62248C
triadic
#2E248C #8C2E24 #248C2E
tetradic
#2E248C #8C244E #828C24 #248C62
square
#2E248C #8C244E #828C24 #248C62
split-complementary
#2E248C #8C6224 #4E8C24
monochromatic
#0E0B2B #1E175B #2E248C #3E31BD #6357D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E248C#FFFFFF#000000##FFFFFF
##2E248C1.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)
#003A8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e248c;
/* rgb */ color: rgb(46, 36, 140);
/* oklch */ color: oklch(35.0% 0.163 278.1);
Tailwind
colors: {
  custom: {
    50: '#7460af',
    500: '#2e248c',
    950: '#000000',
  },
}
SCSS
$custom: #2e248c;
$custom-light: #7460af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e248c",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 245.769,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35034,
    "c": 0.16308,
    "h": 278.1
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#2E248C
secondary
#AEB854
accent
#E246D3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E248C

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

Preview Lab → · Contrast checker → · Palette generator →

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