#2E267E#2E267E

#2E267E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.142 H 279.7°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#2E267E
RGBrgb(46, 38, 126)
HSLhsl(245, 54%, 32%)
HSVhsv(245, 70%, 49%)
CMYKcmyk(63.5%, 69.8%, 0%, 50.6%)
CIE-LABlab(21.85, 31.25, -48.65)
CIE-LCHlch(21.85, 57.82, 302.72°)
OKLaboklab(33.95% 0.024 -0.1402)
OKLCHoklch(33.95% 0.142 279.7)
XYZxyz(5.5845, 3.4730, 20.1107)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E267E #767E26
analogous
#264A7E #2E267E #5A267E
triadic
#2E267E #7E2E26 #267E2E
tetradic
#2E267E #7E264A #767E26 #267E5A
square
#2E267E #7E264A #767E26 #267E5A
split-complementary
#2E267E #7E5A26 #4A7E26
monochromatic
#0C0A20 #1D184F #2E267E #3F34AD #5E53CB

Accessibility & contrast

On white

12.39
#2E267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E267E
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E267E#FFFFFF#000000##FFFFFF
##2E267E1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e267e;
/* rgb */ color: rgb(46, 38, 126);
/* oklch */ color: oklch(34.0% 0.142 279.7);
Tailwind
colors: {
  custom: {
    50: '#7161a4',
    500: '#2e267e',
    950: '#000000',
  },
}
SCSS
$custom: #2e267e;
$custom-light: #7161a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e267e",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 245.455,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3395,
    "c": 0.14223,
    "h": 279.7
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#2E267E
secondary
#A7B050
accent
#DD4BD0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E267E

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

Preview Lab → · Contrast checker → · Palette generator →

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