#2F39AF#2F39AF

#2F39AF is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.0% C 0.185 H 271.7°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2F39AF
RGBrgb(47, 57, 175)
HSLhsl(235, 58%, 44%)
HSVhsv(235, 73%, 69%)
CMYKcmyk(73.1%, 67.4%, 0%, 31.4%)
CIE-LABlab(30.94, 36.61, -63.83)
CIE-LCHlch(30.94, 73.58, 299.84°)
OKLaboklab(41.95% 0.0056 -0.1846)
OKLCHoklch(41.95% 0.185 271.7)
XYZxyz(10.3707, 6.6247, 41.2813)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39AF #AFA52F
analogous
#2F79AF #2F39AF #652FAF
triadic
#2F39AF #AF2F39 #39AF2F
tetradic
#2F39AF #AF2F79 #AFA52F #2FAF65
square
#2F39AF #AF2F79 #AFA52F #2FAF65
split-complementary
#2F39AF #AF652F #79AF2F
monochromatic
#151A4F #22297F #2F39AF #4C56CF #7C84DC

Accessibility & contrast

On white

9.03
#2F39AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F39AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39AF
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39AF#FFFFFF#000000##FFFFFF
##2F39AF1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f39af;
/* rgb */ color: rgb(47, 57, 175);
/* oklch */ color: oklch(42.0% 0.185 271.7);
Tailwind
colors: {
  custom: {
    50: '#7b70c8',
    500: '#2f39af',
    950: '#000000',
  },
}
SCSS
$custom: #2f39af;
$custom-light: #7b70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39af",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 175
  },
  "hsl": {
    "h": 235.313,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41954,
    "c": 0.18465,
    "h": 271.7
  },
  "luminance": 0.06626
}

Semantic roles & 50–950 ramp

primary
#2F39AF
secondary
#C4BE75
accent
#D547E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F39AF

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

Preview Lab → · Contrast checker → · Palette generator →

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