#2D2E78#2D2E78

#2D2E78 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.123 H 277.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2D2E78
RGBrgb(45, 46, 120)
HSLhsl(239, 45%, 32%)
HSVhsv(239, 63%, 47%)
CMYKcmyk(62.5%, 61.7%, 0%, 52.9%)
CIE-LABlab(23.23, 23.70, -42.59)
CIE-LCHlch(23.23, 48.74, 299.10°)
OKLaboklab(34.78% 0.0156 -0.1224)
OKLCHoklch(34.78% 0.123 277.3)
XYZxyz(5.4483, 3.8675, 18.2251)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2E78 #78772D
analogous
#2D5478 #2D2E78 #522D78
triadic
#2D2E78 #782D2E #2E782D
tetradic
#2D2E78 #782D54 #78772D #2D7852
square
#2D2E78 #782D54 #78772D #2D7852
split-complementary
#2D2E78 #78522D #54782D
monochromatic
#0C0C1F #1C1D4B #2D2E78 #3E3FA5 #5D5EC2

Accessibility & contrast

On white

11.84
#2D2E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D2E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2E78
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2E78#FFFFFF#000000##FFFFFF
##2D2E781.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2e78;
/* rgb */ color: rgb(45, 46, 120);
/* oklch */ color: oklch(34.8% 0.123 277.3);
Tailwind
colors: {
  custom: {
    50: '#6e66a0',
    500: '#2d2e78',
    950: '#000000',
  },
}
SCSS
$custom: #2d2e78;
$custom-light: #6e66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2e78",
  "rgb": {
    "r": 45,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 239.2,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34775,
    "c": 0.12338,
    "h": 277.3
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#2D2E78
secondary
#A9A858
accent
#D353D5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2D2E78

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

Preview Lab → · Contrast checker → · Palette generator →

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