#2F399F#2F399F

#2F399F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.5% C 0.163 H 272.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2F399F
RGBrgb(47, 57, 159)
HSLhsl(235, 54%, 40%)
HSVhsv(235, 70%, 62%)
CMYKcmyk(70.4%, 64.2%, 0%, 37.6%)
CIE-LABlab(29.50, 30.88, -56.56)
CIE-LCHlch(29.50, 64.44, 298.63°)
OKLaboklab(40.46% 0.0068 -0.1633)
OKLCHoklch(40.46% 0.163 272.4)
XYZxyz(8.8913, 6.0329, 33.4901)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F399F #9F952F
analogous
#2F719F #2F399F #5D2F9F
triadic
#2F399F #9F2F39 #399F2F
tetradic
#2F399F #9F2F71 #9F952F #2F9F5D
square
#2F399F #9F2F71 #9F952F #2F9F5D
split-complementary
#2F399F #9F5D2F #719F2F
monochromatic
#131741 #212870 #2F399F #444FC8 #737CD6

Accessibility & contrast

On white

9.52
#2F399F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F399F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F399F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F399F#FFFFFF#000000##FFFFFF
##2F399F1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f399f;
/* rgb */ color: rgb(47, 57, 159);
/* oklch */ color: oklch(40.5% 0.163 272.4);
Tailwind
colors: {
  custom: {
    50: '#776fbc',
    500: '#2f399f',
    950: '#000000',
  },
}
SCSS
$custom: #2f399f;
$custom-light: #776fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f399f",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 234.643,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40459,
    "c": 0.16343,
    "h": 272.4
  },
  "luminance": 0.06034
}

Semantic roles & 50–950 ramp

primary
#2F399F
secondary
#BDB66D
accent
#D14ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F399F

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

Preview Lab → · Contrast checker → · Palette generator →

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