#2D2F79#2D2F79

#2D2F79 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.123 H 276.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#2D2F79
RGBrgb(45, 47, 121)
HSLhsl(238, 46%, 33%)
HSVhsv(238, 63%, 47%)
CMYKcmyk(62.8%, 61.2%, 0%, 52.5%)
CIE-LABlab(23.58, 23.38, -42.66)
CIE-LCHlch(23.58, 48.65, 298.73°)
OKLaboklab(35.06% 0.0146 -0.1226)
OKLCHoklch(35.06% 0.123 276.8)
XYZxyz(5.5488, 3.9710, 18.5595)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F79 #79772D
analogous
#2D5579 #2D2F79 #512D79
triadic
#2D2F79 #792D2F #2F792D
tetradic
#2D2F79 #792D55 #79772D #2D7951
square
#2D2F79 #792D55 #79772D #2D7951
split-complementary
#2D2F79 #79512D #55792D
monochromatic
#0C0C20 #1C1E4C #2D2F79 #3E40A6 #5D60C3

Accessibility & contrast

On white

11.70
#2D2F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2F79
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F79#FFFFFF#000000##FFFFFF
##2D2F791.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2f79;
/* rgb */ color: rgb(45, 47, 121);
/* oklch */ color: oklch(35.1% 0.123 276.8);
Tailwind
colors: {
  custom: {
    50: '#6f67a0',
    500: '#2d2f79',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f79;
$custom-light: #6f67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f79",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 238.421,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35057,
    "c": 0.12345,
    "h": 276.8
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2F79

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

Preview Lab → · Contrast checker → · Palette generator →

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