#2E2F7C#2E2F7C

#2E2F7C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.128 H 277.1°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2E2F7C
RGBrgb(46, 47, 124)
HSLhsl(239, 46%, 33%)
HSVhsv(239, 63%, 49%)
CMYKcmyk(62.9%, 62.1%, 0%, 51.4%)
CIE-LABlab(23.90, 24.65, -44.03)
CIE-LCHlch(23.90, 50.46, 299.24°)
OKLaboklab(35.39% 0.0158 -0.1266)
OKLCHoklch(35.39% 0.128 277.1)
XYZxyz(5.7801, 4.0687, 19.5456)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F7C #7C7B2E
analogous
#2E567C #2E2F7C #542E7C
triadic
#2E2F7C #7C2E2F #2F7C2E
tetradic
#2E2F7C #7C2E56 #7C7B2E #2E7C54
square
#2E2F7C #7C2E56 #7C7B2E #2E7C54
split-complementary
#2E2F7C #7C542E #567C2E
monochromatic
#0D0D23 #1D1E4F #2E2F7C #3F40A9 #6062C4

Accessibility & contrast

On white

11.58
#2E2F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2E2F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F7C
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F7C#FFFFFF#000000##FFFFFF
##2E2F7C1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2f7c;
/* rgb */ color: rgb(46, 47, 124);
/* oklch */ color: oklch(35.4% 0.128 277.1);
Tailwind
colors: {
  custom: {
    50: '#7067a3',
    500: '#2e2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f7c;
$custom-light: #7067a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f7c",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 239.231,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35392,
    "c": 0.12758,
    "h": 277.1
  },
  "luminance": 0.04069
}

Semantic roles & 50–950 ramp

primary
#2E2F7C
secondary
#ABAA5B
accent
#D452D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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