#2E267F#2E267F

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

Color values

HEX#2E267F
RGBrgb(46, 38, 127)
HSLhsl(245, 54%, 32%)
HSVhsv(245, 70%, 50%)
CMYKcmyk(63.8%, 70.1%, 0%, 50.2%)
CIE-LABlab(21.94, 31.59, -49.12)
CIE-LCHlch(21.94, 58.41, 302.75°)
OKLaboklab(34.05% 0.0239 -0.1416)
OKLCHoklch(34.05% 0.144 279.6)
XYZxyz(5.6494, 3.4990, 20.4522)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E267F #777F26
analogous
#264B7F #2E267F #5A267F
triadic
#2E267F #7F2E26 #267F2E
tetradic
#2E267F #7F264B #777F26 #267F5A
square
#2E267F #7F264B #777F26 #267F5A
split-complementary
#2E267F #7F5A26 #4B7F26
monochromatic
#0C0A21 #1D1850 #2E267F #3F34AE #5E54CC

Accessibility & contrast

On white

12.35
#2E267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2E267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E267F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E267F#FFFFFF#000000##FFFFFF
##2E267F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e267f;
/* rgb */ color: rgb(46, 38, 127);
/* oklch */ color: oklch(34.0% 0.144 279.6);
Tailwind
colors: {
  custom: {
    50: '#7161a5',
    500: '#2e267f',
    950: '#000000',
  },
}
SCSS
$custom: #2e267f;
$custom-light: #7161a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e267f",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 245.393,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34046,
    "c": 0.14359,
    "h": 279.6
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#2E267F
secondary
#A8B051
accent
#DD4AD0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E267F

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

Preview Lab → · Contrast checker → · Palette generator →

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