#2F3799#2F3799

#2F3799 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.158 H 273.2°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2F3799
RGBrgb(47, 55, 153)
HSLhsl(235, 53%, 39%)
HSVhsv(235, 69%, 60%)
CMYKcmyk(69.3%, 64.1%, 0%, 40%)
CIE-LABlab(28.47, 30.00, -54.58)
CIE-LCHlch(28.47, 62.29, 298.80°)
OKLaboklab(39.55% 0.0087 -0.1575)
OKLCHoklch(39.55% 0.158 273.2)
XYZxyz(8.2863, 5.6359, 30.7820)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3799 #99912F
analogous
#2F6C99 #2F3799 #5C2F99
triadic
#2F3799 #992F37 #37992F
tetradic
#2F3799 #992F6C #99912F #2F995C
square
#2F3799 #992F6C #99912F #2F995C
split-complementary
#2F3799 #995C2F #6C992F
monochromatic
#12153B #21266A #2F3799 #414BC5 #6F77D3

Accessibility & contrast

On white

9.87
#2F3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3799
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3799#FFFFFF#000000##FFFFFF
##2F37991.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3799;
/* rgb */ color: rgb(47, 55, 153);
/* oklch */ color: oklch(39.5% 0.158 273.2);
Tailwind
colors: {
  custom: {
    50: '#766eb8',
    500: '#2f3799',
    950: '#000000',
  },
}
SCSS
$custom: #2f3799;
$custom-light: #766eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3799",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 235.472,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39547,
    "c": 0.15773,
    "h": 273.2
  },
  "luminance": 0.05637
}

Semantic roles & 50–950 ramp

primary
#2F3799
secondary
#BAB469
accent
#D14BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #2F3799

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

Preview Lab → · Contrast checker → · Palette generator →

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