#2E2F72#2E2F72

#2E2F72 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.113 H 278.1°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#2E2F72
RGBrgb(46, 47, 114)
HSLhsl(239, 43%, 31%)
HSVhsv(239, 60%, 45%)
CMYKcmyk(59.6%, 58.8%, 0%, 55.3%)
CIE-LABlab(23.10, 21.05, -38.97)
CIE-LCHlch(23.10, 44.29, 298.37°)
OKLaboklab(34.54% 0.0158 -0.1117)
OKLCHoklch(34.54% 0.113 278.1)
XYZxyz(5.1795, 3.8284, 16.3823)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F72 #72712E
analogous
#2E5172 #2E2F72 #4F2E72
triadic
#2E2F72 #722E2F #2F722E
tetradic
#2E2F72 #722E51 #72712E #2E724F
square
#2E2F72 #722E51 #72712E #2E724F
split-complementary
#2E2F72 #724F2E #51722E
monochromatic
#0B0B1B #1C1D46 #2E2F72 #40419E #5D5EBE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E2F72#FFFFFF#000000##FFFFFF
##2E2F721.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)
#003A74
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#073F4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2f72;
/* rgb */ color: rgb(46, 47, 114);
/* oklch */ color: oklch(34.5% 0.113 278.1);
Tailwind
colors: {
  custom: {
    50: '#6e679b',
    500: '#2e2f72',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f72;
$custom-light: #6e679b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f72",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 239.118,
    "s": 42.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34545,
    "c": 0.11282,
    "h": 278.1
  },
  "luminance": 0.03829
}

Semantic roles & 50–950 ramp

primary
#2E2F72
secondary
#A3A258
accent
#D056D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2E2F72

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

Preview Lab → · Contrast checker → · Palette generator →

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