#2F3199#2F3199

#2F3199 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.165 H 274.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#2F3199
RGBrgb(47, 49, 153)
HSLhsl(239, 53%, 39%)
HSVhsv(239, 69%, 60%)
CMYKcmyk(69.3%, 68%, 0%, 40%)
CIE-LABlab(27.02, 33.87, -56.97)
CIE-LCHlch(27.02, 66.27, 300.73°)
OKLaboklab(38.48% 0.0132 -0.1645)
OKLCHoklch(38.48% 0.165 274.6)
XYZxyz(8.0185, 5.1001, 30.6927)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3199 #99972F
analogous
#2F6699 #2F3199 #622F99
triadic
#2F3199 #992F31 #31992F
tetradic
#2F3199 #992F66 #99972F #2F9962
square
#2F3199 #992F66 #99972F #2F9962
split-complementary
#2F3199 #99622F #66992F
monochromatic
#12133B #21226A #2F3199 #4143C5 #6F71D3

Accessibility & contrast

On white

10.40
#2F3199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F3199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3199
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3199#FFFFFF#000000##FFFFFF
##2F31991.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3199;
/* rgb */ color: rgb(47, 49, 153);
/* oklch */ color: oklch(38.5% 0.165 274.6);
Tailwind
colors: {
  custom: {
    50: '#7669b8',
    500: '#2f3199',
    950: '#000000',
  },
}
SCSS
$custom: #2f3199;
$custom-light: #7669b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3199",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 238.868,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38484,
    "c": 0.16504,
    "h": 274.6
  },
  "luminance": 0.05101
}

Semantic roles & 50–950 ramp

primary
#2F3199
secondary
#BAB969
accent
#DA4BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F3199

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

Preview Lab → · Contrast checker → · Palette generator →

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