#2F39A1#2F39A1

#2F39A1 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.166 H 272.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#2F39A1
RGBrgb(47, 57, 161)
HSLhsl(235, 55%, 41%)
HSVhsv(235, 71%, 63%)
CMYKcmyk(70.8%, 64.6%, 0%, 36.9%)
CIE-LABlab(29.67, 31.60, -57.49)
CIE-LCHlch(29.67, 65.60, 298.80°)
OKLaboklab(40.64% 0.0067 -0.166)
OKLCHoklch(40.64% 0.166 272.3)
XYZxyz(9.0663, 6.1029, 34.4115)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39A1 #A1972F
analogous
#2F72A1 #2F39A1 #5E2FA1
triadic
#2F39A1 #A12F39 #39A12F
tetradic
#2F39A1 #A12F72 #A1972F #2FA15E
square
#2F39A1 #A12F72 #A1972F #2FA15E
split-complementary
#2F39A1 #A15E2F #72A12F
monochromatic
#131742 #212872 #2F39A1 #4550C9 #747DD6

Accessibility & contrast

On white

9.46
#2F39A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F39A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39A1
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39A1#FFFFFF#000000##FFFFFF
##2F39A11.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f39a1;
/* rgb */ color: rgb(47, 57, 161);
/* oklch */ color: oklch(40.6% 0.166 272.3);
Tailwind
colors: {
  custom: {
    50: '#776fbe',
    500: '#2f39a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f39a1;
$custom-light: #776fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39a1",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 161
  },
  "hsl": {
    "h": 234.737,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40641,
    "c": 0.16614,
    "h": 272.3
  },
  "luminance": 0.06104
}

Semantic roles & 50–950 ramp

primary
#2F39A1
secondary
#BEB76E
accent
#D14ADE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F39A1

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

Preview Lab → · Contrast checker → · Palette generator →

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