#2E2F8A#2E2F8A

#2E2F8A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.147 H 275.8°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2E2F8A
RGBrgb(46, 47, 138)
HSLhsl(239, 50%, 36%)
HSVhsv(239, 67%, 54%)
CMYKcmyk(66.7%, 65.9%, 0%, 45.9%)
CIE-LABlab(25.10, 29.68, -50.85)
CIE-LCHlch(25.10, 58.88, 300.27°)
OKLaboklab(36.65% 0.015 -0.1466)
OKLCHoklch(36.65% 0.147 275.8)
XYZxyz(6.7292, 4.4483, 24.5438)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F8A #8A892E
analogous
#2E5D8A #2E2F8A #5B2E8A
triadic
#2E2F8A #8A2E2F #2F8A2E
tetradic
#2E2F8A #8A2E5D #8A892E #2E8A5B
square
#2E2F8A #8A2E5D #8A892E #2E8A5B
split-complementary
#2E2F8A #8A5B2E #5D8A2E
monochromatic
#0F102E #1F1F5C #2E2F8A #3D3FB8 #6667CC

Accessibility & contrast

On white

11.11
#2E2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2E2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F8A
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F8A#FFFFFF#000000##FFFFFF
##2E2F8A1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e2f8a;
/* rgb */ color: rgb(46, 47, 138);
/* oklch */ color: oklch(36.7% 0.147 275.8);
Tailwind
colors: {
  custom: {
    50: '#7368ad',
    500: '#2e2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f8a;
$custom-light: #7368ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f8a",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 239.348,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36651,
    "c": 0.1474,
    "h": 275.8
  },
  "luminance": 0.04449
}

Semantic roles & 50–950 ramp

primary
#2E2F8A
secondary
#B3B261
accent
#D84EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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