#2E268B#2E268B

#2E268B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.160 H 277.9°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#2E268B
RGBrgb(46, 38, 139)
HSLhsl(245, 57%, 35%)
HSVhsv(245, 73%, 55%)
CMYKcmyk(66.9%, 72.7%, 0%, 45.5%)
CIE-LABlab(23.10, 35.69, -54.75)
CIE-LCHlch(23.10, 65.36, 303.10°)
OKLaboklab(35.24% 0.0219 -0.1581)
OKLCHoklch(35.24% 0.16 277.9)
XYZxyz(6.4785, 3.8306, 24.8191)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E268B #838B26
analogous
#26518B #2E268B #60268B
triadic
#2E268B #8B2E26 #268B2E
tetradic
#2E268B #8B2651 #838B26 #268B60
square
#2E268B #8B2651 #838B26 #268B60
split-complementary
#2E268B #8B6026 #518B26
monochromatic
#0E0C2B #1E195B #2E268B #3E33BB #635AD2

Accessibility & contrast

On white

11.89
#2E268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2E268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E268B
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E268B#FFFFFF#000000##FFFFFF
##2E268B1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e268b;
/* rgb */ color: rgb(46, 38, 139);
/* oklch */ color: oklch(35.2% 0.160 277.9);
Tailwind
colors: {
  custom: {
    50: '#7462ae',
    500: '#2e268b',
    950: '#000000',
  },
}
SCSS
$custom: #2e268b;
$custom-light: #7462ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e268b",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 244.752,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35236,
    "c": 0.15957,
    "h": 277.9
  },
  "luminance": 0.03831
}

Semantic roles & 50–950 ramp

primary
#2E268B
secondary
#AFB756
accent
#E047D4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E268B

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

Preview Lab → · Contrast checker → · Palette generator →

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