#2E2F7B#2E2F7B

#2E2F7B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.126 H 277.2°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#2E2F7B
RGBrgb(46, 47, 123)
HSLhsl(239, 46%, 33%)
HSVhsv(239, 63%, 48%)
CMYKcmyk(62.6%, 61.8%, 0%, 51.8%)
CIE-LABlab(23.81, 24.29, -43.53)
CIE-LCHlch(23.81, 49.85, 299.16°)
OKLaboklab(35.31% 0.0158 -0.1251)
OKLCHoklch(35.31% 0.126 277.2)
XYZxyz(5.7172, 4.0435, 19.2142)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F7B #7B7A2E
analogous
#2E557B #2E2F7B #532E7B
triadic
#2E2F7B #7B2E2F #2F7B2E
tetradic
#2E2F7B #7B2E55 #7B7A2E #2E7B53
square
#2E2F7B #7B2E55 #7B7A2E #2E7B53
split-complementary
#2E2F7B #7B532E #557B2E
monochromatic
#0D0D22 #1D1E4E #2E2F7B #3F40A8 #6061C3

Accessibility & contrast

On white

11.61
#2E2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2F7B
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F7B#FFFFFF#000000##FFFFFF
##2E2F7B1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2f7b;
/* rgb */ color: rgb(46, 47, 123);
/* oklch */ color: oklch(35.3% 0.126 277.2);
Tailwind
colors: {
  custom: {
    50: '#7067a2',
    500: '#2e2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f7b;
$custom-light: #7067a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f7b",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 239.221,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35305,
    "c": 0.12614,
    "h": 277.2
  },
  "luminance": 0.04044
}

Semantic roles & 50–950 ramp

primary
#2E2F7B
secondary
#AAA95B
accent
#D453D5
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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