#2C2F79#2C2F79

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

Color values

HEX#2C2F79
RGBrgb(44, 47, 121)
HSLhsl(238, 47%, 32%)
HSVhsv(238, 64%, 47%)
CMYKcmyk(63.6%, 61.2%, 0%, 52.5%)
CIE-LABlab(23.50, 23.20, -42.78)
CIE-LCHlch(23.50, 48.67, 298.47°)
OKLaboklab(34.98% 0.0133 -0.123)
OKLCHoklch(34.98% 0.124 276.2)
XYZxyz(5.5053, 3.9485, 18.5575)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F79 #79762C
analogous
#2C5679 #2C2F79 #4F2C79
triadic
#2C2F79 #792C2F #2F792C
tetradic
#2C2F79 #792C56 #79762C #2C794F
square
#2C2F79 #792C56 #79762C #2C794F
split-complementary
#2C2F79 #794F2C #56792C
monochromatic
#0B0C1F #1C1E4C #2C2F79 #3C40A6 #5C60C4

Accessibility & contrast

On white

11.73
#2C2F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2F79
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F79#FFFFFF#000000##FFFFFF
##2C2F791.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.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: #2c2f79;
/* rgb */ color: rgb(44, 47, 121);
/* oklch */ color: oklch(35.0% 0.124 276.2);
Tailwind
colors: {
  custom: {
    50: '#6e67a0',
    500: '#2c2f79',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f79;
$custom-light: #6e67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f79",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 237.662,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34982,
    "c": 0.12371,
    "h": 276.2
  },
  "luminance": 0.03949
}

Semantic roles & 50–950 ramp

primary
#2C2F79
secondary
#AAA757
accent
#D151D6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2C2F79

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

Preview Lab → · Contrast checker → · Palette generator →

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