#2E3097#2E3097

#2E3097 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.164 H 274.5°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2E3097
RGBrgb(46, 48, 151)
HSLhsl(239, 53%, 39%)
HSVhsv(239, 70%, 59%)
CMYKcmyk(69.5%, 68.2%, 0%, 40.8%)
CIE-LABlab(26.53, 33.66, -56.55)
CIE-LCHlch(26.53, 65.81, 300.77°)
OKLaboklab(38.06% 0.0129 -0.1633)
OKLCHoklch(38.06% 0.164 274.5)
XYZxyz(7.7677, 4.9284, 29.8141)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3097 #97952E
analogous
#2E6497 #2E3097 #602E97
triadic
#2E3097 #972E30 #30972E
tetradic
#2E3097 #972E64 #97952E #2E9760
square
#2E3097 #972E64 #97952E #2E9760
split-complementary
#2E3097 #97602E #64972E
monochromatic
#111239 #202168 #2E3097 #3E41C4 #6D6FD2

Accessibility & contrast

On white

10.58
#2E3097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2E3097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3097
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3097#FFFFFF#000000##FFFFFF
##2E30971.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e3097;
/* rgb */ color: rgb(46, 48, 151);
/* oklch */ color: oklch(38.1% 0.164 274.5);
Tailwind
colors: {
  custom: {
    50: '#7669b7',
    500: '#2e3097',
    950: '#000000',
  },
}
SCSS
$custom: #2e3097;
$custom-light: #7669b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3097",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 151
  },
  "hsl": {
    "h": 238.857,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38055,
    "c": 0.16382,
    "h": 274.5
  },
  "luminance": 0.04929
}

Semantic roles & 50–950 ramp

primary
#2E3097
secondary
#BAB867
accent
#DA4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E3097

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

Preview Lab → · Contrast checker → · Palette generator →

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