#2E2F8E#2E2F8E

#2E2F8E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.153 H 275.5°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2E2F8E
RGBrgb(46, 47, 142)
HSLhsl(239, 51%, 37%)
HSVhsv(239, 68%, 56%)
CMYKcmyk(67.6%, 66.9%, 0%, 44.3%)
CIE-LABlab(25.46, 31.11, -52.75)
CIE-LCHlch(25.46, 61.24, 300.53°)
OKLaboklab(37.02% 0.0146 -0.1522)
OKLCHoklch(37.02% 0.153 275.5)
XYZxyz(7.0241, 4.5663, 26.0972)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F8E #8E8D2E
analogous
#2E5F8E #2E2F8E #5D2E8E
triadic
#2E2F8E #8E2E2F #2F8E2E
tetradic
#2E2F8E #8E2E5F #8E8D2E #2E8E5D
square
#2E2F8E #8E2E5F #8E8D2E #2E8E5D
split-complementary
#2E2F8E #8E5D2E #5F8E2E
monochromatic
#101032 #1F2060 #2E2F8E #3D3EBC #6869CE

Accessibility & contrast

On white

10.98
#2E2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2E2F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F8E
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F8E#FFFFFF#000000##FFFFFF
##2E2F8E1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e2f8e;
/* rgb */ color: rgb(46, 47, 142);
/* oklch */ color: oklch(37.0% 0.153 275.5);
Tailwind
colors: {
  custom: {
    50: '#7468b0',
    500: '#2e2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f8e;
$custom-light: #7468b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f8e",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 239.375,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37024,
    "c": 0.15289,
    "h": 275.5
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#2E2F8E
secondary
#B5B463
accent
#D94DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2E2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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