#2D2F78#2D2F78

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

Color values

HEX#2D2F78
RGBrgb(45, 47, 120)
HSLhsl(238, 45%, 32%)
HSVhsv(238, 63%, 47%)
CMYKcmyk(62.5%, 60.8%, 0%, 52.9%)
CIE-LABlab(23.49, 23.02, -42.15)
CIE-LCHlch(23.49, 48.03, 298.64°)
OKLaboklab(34.97% 0.0146 -0.1211)
OKLCHoklch(34.97% 0.122 276.9)
XYZxyz(5.4878, 3.9466, 18.2382)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F78 #78762D
analogous
#2D5578 #2D2F78 #512D78
triadic
#2D2F78 #782D2F #2F782D
tetradic
#2D2F78 #782D55 #78762D #2D7851
square
#2D2F78 #782D55 #78762D #2D7851
split-complementary
#2D2F78 #78512D #55782D
monochromatic
#0C0C1F #1C1E4B #2D2F78 #3E40A5 #5D60C2

Accessibility & contrast

On white

11.74
#2D2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2F78
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F78#FFFFFF#000000##FFFFFF
##2D2F781.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2f78;
/* rgb */ color: rgb(45, 47, 120);
/* oklch */ color: oklch(35.0% 0.122 276.9);
Tailwind
colors: {
  custom: {
    50: '#6e67a0',
    500: '#2d2f78',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f78;
$custom-light: #6e67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f78",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 238.4,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34971,
    "c": 0.12198,
    "h": 276.9
  },
  "luminance": 0.03947
}

Semantic roles & 50–950 ramp

primary
#2D2F78
secondary
#A9A758
accent
#D253D5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2D2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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