#2E3979#2E3979

#2E3979 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.2% C 0.109 H 272.7°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2E3979
RGBrgb(46, 57, 121)
HSLhsl(231, 45%, 33%)
HSVhsv(231, 62%, 47%)
CMYKcmyk(62%, 52.9%, 0%, 52.5%)
CIE-LABlab(26.41, 16.72, -38.07)
CIE-LCHlch(26.41, 41.58, 293.71°)
OKLaboklab(37.2% 0.0051 -0.1089)
OKLCHoklch(37.2% 0.109 272.7)
XYZxyz(6.0399, 4.8871, 18.7105)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3979 #796E2E
analogous
#2E5E79 #2E3979 #482E79
triadic
#2E3979 #792E39 #39792E
tetradic
#2E3979 #792E5E #796E2E #2E7948
square
#2E3979 #792E5E #796E2E #2E7948
split-complementary
#2E3979 #79482E #5E792E
monochromatic
#0C0F20 #1D244D #2E3979 #3F4EA5 #5F6EC2

Accessibility & contrast

On white

10.62
#2E3979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2E3979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3979
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3979#FFFFFF#000000##FFFFFF
##2E39791.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427B
Deuteranopia (green-blind)
#053B78
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e3979;
/* rgb */ color: rgb(46, 57, 121);
/* oklch */ color: oklch(37.2% 0.109 272.7);
Tailwind
colors: {
  custom: {
    50: '#6e6fa0',
    500: '#2e3979',
    950: '#000000',
  },
}
SCSS
$custom: #2e3979;
$custom-light: #6e6fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3979",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 121
  },
  "hsl": {
    "h": 231.2,
    "s": 44.91,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37196,
    "c": 0.10907,
    "h": 272.7
  },
  "luminance": 0.04888
}

Semantic roles & 50–950 ramp

primary
#2E3979
secondary
#A99D5A
accent
#C253D5
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2E3979

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

Preview Lab → · Contrast checker → · Palette generator →

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