#2E1F7C#2E1F7C

#2E1F7C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.148 H 281.8°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#2E1F7C
RGBrgb(46, 31, 124)
HSLhsl(250, 60%, 30%)
HSVhsv(250, 75%, 49%)
CMYKcmyk(62.9%, 75%, 0%, 51.4%)
CIE-LABlab(20.11, 34.83, -50.23)
CIE-LCHlch(20.11, 61.13, 304.74°)
OKLaboklab(32.65% 0.0302 -0.1448)
OKLCHoklch(32.65% 0.148 281.8)
XYZxyz(5.2537, 3.0157, 19.3701)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F7C #6D7C1F
analogous
#1F3F7C #2E1F7C #5C1F7C
triadic
#2E1F7C #7C2E1F #1F7C2E
tetradic
#2E1F7C #7C1F3F #6D7C1F #1F7C5C
square
#2E1F7C #7C1F3F #6D7C1F #1F7C5C
split-complementary
#2E1F7C #7C5C1F #3F7C1F
monochromatic
#0A071A #1C134B #2E1F7C #402BAD #5B45D0

Accessibility & contrast

On white

13.10
#2E1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E1F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F7C
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F7C#FFFFFF#000000##FFFFFF
##2E1F7C1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1f7c;
/* rgb */ color: rgb(46, 31, 124);
/* oklch */ color: oklch(32.6% 0.148 281.8);
Tailwind
colors: {
  custom: {
    50: '#715ca3',
    500: '#2e1f7c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f7c;
$custom-light: #715ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f7c",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 249.677,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32645,
    "c": 0.14792,
    "h": 281.8
  },
  "luminance": 0.03016
}

Semantic roles & 50–950 ramp

primary
#2E1F7C
secondary
#9FAF48
accent
#E345CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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