#2E2F78#2E2F78

#2E2F78 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.122 H 277.5°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2E2F78
RGBrgb(46, 47, 120)
HSLhsl(239, 45%, 33%)
HSVhsv(239, 62%, 47%)
CMYKcmyk(61.7%, 60.8%, 0%, 52.9%)
CIE-LABlab(23.57, 23.21, -42.03)
CIE-LCHlch(23.57, 48.01, 298.91°)
OKLaboklab(35.05% 0.0159 -0.1207)
OKLCHoklch(35.05% 0.122 277.5)
XYZxyz(5.5323, 3.9695, 18.2403)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F78 #78772E
analogous
#2E5478 #2E2F78 #522E78
triadic
#2E2F78 #782E2F #2F782E
tetradic
#2E2F78 #782E54 #78772E #2E7852
square
#2E2F78 #782E54 #78772E #2E7852
split-complementary
#2E2F78 #78522E #54782E
monochromatic
#0C0C20 #1D1E4C #2E2F78 #3F40A4 #5F60C2

Accessibility & contrast

On white

11.71
#2E2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E2F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F78
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F78#FFFFFF#000000##FFFFFF
##2E2F781.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2f78;
/* rgb */ color: rgb(46, 47, 120);
/* oklch */ color: oklch(35.0% 0.122 277.5);
Tailwind
colors: {
  custom: {
    50: '#6f67a0',
    500: '#2e2f78',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f78;
$custom-light: #6f67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f78",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 239.189,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.12175,
    "h": 277.5
  },
  "luminance": 0.0397
}

Semantic roles & 50–950 ramp

primary
#2E2F78
secondary
#A8A75A
accent
#D354D4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2E2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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