#2F39A3#2F39A3

#2F39A3 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.169 H 272.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2F39A3
RGBrgb(47, 57, 163)
HSLhsl(235, 55%, 41%)
HSVhsv(235, 71%, 64%)
CMYKcmyk(71.2%, 65%, 0%, 36.1%)
CIE-LABlab(29.85, 32.32, -58.41)
CIE-LCHlch(29.85, 66.76, 298.96°)
OKLaboklab(40.83% 0.0066 -0.1687)
OKLCHoklch(40.83% 0.169 272.2)
XYZxyz(9.2441, 6.1740, 35.3478)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39A3 #A3992F
analogous
#2F73A3 #2F39A3 #5F2FA3
triadic
#2F39A3 #A32F39 #39A32F
tetradic
#2F39A3 #A32F73 #A3992F #2FA35F
square
#2F39A3 #A32F73 #A3992F #2FA35F
split-complementary
#2F39A3 #A35F2F #73A32F
monochromatic
#141844 #212873 #2F39A3 #4651CA #757ED7

Accessibility & contrast

On white

9.40
#2F39A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F39A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39A3
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39A3#FFFFFF#000000##FFFFFF
##2F39A31.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#0041A1
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f39a3;
/* rgb */ color: rgb(47, 57, 163);
/* oklch */ color: oklch(40.8% 0.169 272.2);
Tailwind
colors: {
  custom: {
    50: '#786fbf',
    500: '#2f39a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f39a3;
$custom-light: #786fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39a3",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 163
  },
  "hsl": {
    "h": 234.828,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40825,
    "c": 0.16883,
    "h": 272.2
  },
  "luminance": 0.06175
}

Semantic roles & 50–950 ramp

primary
#2F39A3
secondary
#BFB86F
accent
#D249DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F39A3

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

Preview Lab → · Contrast checker → · Palette generator →

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