#2F39B2#2F39B2

#2F39B2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.2% C 0.189 H 271.6°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#2F39B2
RGBrgb(47, 57, 178)
HSLhsl(235, 58%, 44%)
HSVhsv(235, 74%, 70%)
CMYKcmyk(73.6%, 68%, 0%, 30.2%)
CIE-LABlab(31.22, 37.67, -65.16)
CIE-LCHlch(31.22, 75.26, 300.04°)
OKLaboklab(42.24% 0.0053 -0.1884)
OKLCHoklch(42.24% 0.189 271.6)
XYZxyz(10.6686, 6.7438, 42.8503)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39B2 #B2A82F
analogous
#2F7BB2 #2F39B2 #672FB2
triadic
#2F39B2 #B22F39 #39B22F
tetradic
#2F39B2 #B22F7B #B2A82F #2FB267
square
#2F39B2 #B22F7B #B2A82F #2FB267
split-complementary
#2F39B2 #B2672F #7BB22F
monochromatic
#151A51 #222982 #2F39B2 #4E58D0 #7E86DD

Accessibility & contrast

On white

8.94
#2F39B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F39B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39B2
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39B2#FFFFFF#000000##FFFFFF
##2F39B21.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f39b2;
/* rgb */ color: rgb(47, 57, 178);
/* oklch */ color: oklch(42.2% 0.189 271.6);
Tailwind
colors: {
  custom: {
    50: '#7b70ca',
    500: '#2f39b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f39b2;
$custom-light: #7b70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39b2",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 235.42,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42243,
    "c": 0.18852,
    "h": 271.6
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#2F39B2
secondary
#C6C077
accent
#D646E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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