#2E2F7F#2E2F7F

#2E2F7F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.132 H 276.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2E2F7F
RGBrgb(46, 47, 127)
HSLhsl(239, 47%, 34%)
HSVhsv(239, 64%, 50%)
CMYKcmyk(63.8%, 63%, 0%, 50.2%)
CIE-LABlab(24.15, 25.74, -45.52)
CIE-LCHlch(24.15, 52.29, 299.48°)
OKLaboklab(35.65% 0.0157 -0.131)
OKLCHoklch(35.65% 0.132 276.8)
XYZxyz(5.9728, 4.1457, 20.5600)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F7F #7F7E2E
analogous
#2E587F #2E2F7F #562E7F
triadic
#2E2F7F #7F2E2F #2F7F2E
tetradic
#2E2F7F #7F2E58 #7F7E2E #2E7F56
square
#2E2F7F #7F2E58 #7F7E2E #2E7F56
split-complementary
#2E2F7F #7F562E #587F2E
monochromatic
#0D0E25 #1E1E52 #2E2F7F #3E40AC #6163C6

Accessibility & contrast

On white

11.48
#2E2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2E2F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F7F
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F7F#FFFFFF#000000##FFFFFF
##2E2F7F1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2f7f;
/* rgb */ color: rgb(46, 47, 127);
/* oklch */ color: oklch(35.7% 0.132 276.8);
Tailwind
colors: {
  custom: {
    50: '#7067a5',
    500: '#2e2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f7f;
$custom-light: #7067a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f7f",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 239.259,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35654,
    "c": 0.13192,
    "h": 276.8
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#2E2F7F
secondary
#ADAC5C
accent
#D551D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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