#2E2F8D#2E2F8D

#2E2F8D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.152 H 275.6°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#2E2F8D
RGBrgb(46, 47, 141)
HSLhsl(239, 51%, 37%)
HSVhsv(239, 67%, 55%)
CMYKcmyk(67.4%, 66.7%, 0%, 44.7%)
CIE-LABlab(25.37, 30.75, -52.28)
CIE-LCHlch(25.37, 60.65, 300.47°)
OKLaboklab(36.93% 0.0147 -0.1508)
OKLCHoklch(36.93% 0.152 275.6)
XYZxyz(6.9494, 4.5364, 25.7035)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F8D #8D8C2E
analogous
#2E5F8D #2E2F8D #5D2E8D
triadic
#2E2F8D #8D2E2F #2F8D2E
tetradic
#2E2F8D #8D2E5F #8D8C2E #2E8D5D
square
#2E2F8D #8D2E5F #8D8C2E #2E8D5D
split-complementary
#2E2F8D #8D5D2E #5F8D2E
monochromatic
#101031 #1F205F #2E2F8D #3D3EBB #6869CE

Accessibility & contrast

On white

11.01
#2E2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2F8D
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F8D#FFFFFF#000000##FFFFFF
##2E2F8D1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e2f8d;
/* rgb */ color: rgb(46, 47, 141);
/* oklch */ color: oklch(36.9% 0.152 275.6);
Tailwind
colors: {
  custom: {
    50: '#7368af',
    500: '#2e2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f8d;
$custom-light: #7368af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f8d",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 239.368,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3693,
    "c": 0.15153,
    "h": 275.6
  },
  "luminance": 0.04537
}

Semantic roles & 50–950 ramp

primary
#2E2F8D
secondary
#B5B462
accent
#D94EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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