#2E268F#2E268F

#2E268F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.165 H 277.4°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#2E268F
RGBrgb(46, 38, 143)
HSLhsl(245, 58%, 35%)
HSVhsv(245, 73%, 56%)
CMYKcmyk(67.8%, 73.4%, 0%, 43.9%)
CIE-LABlab(23.50, 37.05, -56.58)
CIE-LCHlch(23.50, 67.63, 303.22°)
OKLaboklab(35.64% 0.0211 -0.1634)
OKLCHoklch(35.64% 0.165 277.4)
XYZxyz(6.7761, 3.9497, 26.3865)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E268F #878F26
analogous
#26538F #2E268F #62268F
triadic
#2E268F #8F2E26 #268F2E
tetradic
#2E268F #8F2653 #878F26 #268F62
square
#2E268F #8F2653 #878F26 #268F62
split-complementary
#2E268F #8F6226 #538F26
monochromatic
#0F0C2E #1E195F #2E268F #3E33BF #655CD4

Accessibility & contrast

On white

11.73
#2E268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E268F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E268F#FFFFFF#000000##FFFFFF
##2E268F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e268f;
/* rgb */ color: rgb(46, 38, 143);
/* oklch */ color: oklch(35.6% 0.165 277.4);
Tailwind
colors: {
  custom: {
    50: '#7562b1',
    500: '#2e268f',
    950: '#000000',
  },
}
SCSS
$custom: #2e268f;
$custom-light: #7562b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e268f",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 244.571,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35643,
    "c": 0.16476,
    "h": 277.4
  },
  "luminance": 0.0395
}

Semantic roles & 50–950 ramp

primary
#2E268F
secondary
#B1B958
accent
#E147D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E268F

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

Preview Lab → · Contrast checker → · Palette generator →

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