#2E2F82#2E2F82

#2E2F82 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.136 H 276.6°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#2E2F82
RGBrgb(46, 47, 130)
HSLhsl(239, 48%, 35%)
HSVhsv(239, 65%, 51%)
CMYKcmyk(64.6%, 63.8%, 0%, 49%)
CIE-LABlab(24.40, 26.82, -46.99)
CIE-LCHlch(24.40, 54.11, 299.71°)
OKLaboklab(35.92% 0.0156 -0.1353)
OKLCHoklch(35.92% 0.136 276.6)
XYZxyz(6.1712, 4.2251, 21.6051)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F82 #82812E
analogous
#2E5982 #2E2F82 #572E82
triadic
#2E2F82 #822E2F #2F822E
tetradic
#2E2F82 #822E59 #82812E #2E8257
square
#2E2F82 #822E59 #82812E #2E8257
split-complementary
#2E2F82 #82572E #59822E
monochromatic
#0E0E28 #1E1F55 #2E2F82 #3E3FAF #6364C8

Accessibility & contrast

On white

11.38
#2E2F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2E2F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F82
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F82#FFFFFF#000000##FFFFFF
##2E2F821.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003680
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e2f82;
/* rgb */ color: rgb(46, 47, 130);
/* oklch */ color: oklch(35.9% 0.136 276.6);
Tailwind
colors: {
  custom: {
    50: '#7167a7',
    500: '#2e2f82',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f82;
$custom-light: #7167a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f82",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 239.286,
    "s": 47.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35921,
    "c": 0.13619,
    "h": 276.6
  },
  "luminance": 0.04226
}

Semantic roles & 50–950 ramp

primary
#2E2F82
secondary
#AEAD5D
accent
#D650D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E2F82

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

Preview Lab → · Contrast checker → · Palette generator →

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