#2E268E#2E268E

#2E268E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.163 H 277.5°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#2E268E
RGBrgb(46, 38, 142)
HSLhsl(245, 58%, 35%)
HSVhsv(245, 73%, 56%)
CMYKcmyk(67.6%, 73.2%, 0%, 44.3%)
CIE-LABlab(23.40, 36.71, -56.13)
CIE-LCHlch(23.40, 67.07, 303.19°)
OKLaboklab(35.54% 0.0213 -0.1621)
OKLCHoklch(35.54% 0.163 277.5)
XYZxyz(6.7007, 3.9195, 25.9894)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E268E #868E26
analogous
#26528E #2E268E #62268E
triadic
#2E268E #8E2E26 #268E2E
tetradic
#2E268E #8E2652 #868E26 #268E62
square
#2E268E #8E2652 #868E26 #268E62
split-complementary
#2E268E #8E6226 #528E26
monochromatic
#0F0C2D #1E195E #2E268E #3E33BE #645BD3

Accessibility & contrast

On white

11.77
#2E268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2E268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E268E
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E268E#FFFFFF#000000##FFFFFF
##2E268E1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e268e;
/* rgb */ color: rgb(46, 38, 142);
/* oklch */ color: oklch(35.5% 0.163 277.5);
Tailwind
colors: {
  custom: {
    50: '#7462b0',
    500: '#2e268e',
    950: '#000000',
  },
}
SCSS
$custom: #2e268e;
$custom-light: #7462b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e268e",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 244.615,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35541,
    "c": 0.16347,
    "h": 277.5
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E268E

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

Preview Lab → · Contrast checker → · Palette generator →

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