#2F39A6#2F39A6

#2F39A6 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.1% C 0.173 H 272.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2F39A6
RGBrgb(47, 57, 166)
HSLhsl(235, 56%, 42%)
HSVhsv(235, 72%, 65%)
CMYKcmyk(71.7%, 65.7%, 0%, 34.9%)
CIE-LABlab(30.11, 33.40, -59.78)
CIE-LCHlch(30.11, 68.48, 299.19°)
OKLaboklab(41.1% 0.0064 -0.1727)
OKLCHoklch(41.1% 0.173 272.1)
XYZxyz(9.5160, 6.2828, 36.7802)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39A6 #A69C2F
analogous
#2F75A6 #2F39A6 #612FA6
triadic
#2F39A6 #A62F39 #39A62F
tetradic
#2F39A6 #A62F75 #A69C2F #2FA661
square
#2F39A6 #A62F75 #A69C2F #2FA661
split-complementary
#2F39A6 #A6612F #75A62F
monochromatic
#141847 #212976 #2F39A6 #4752CB #777FD8

Accessibility & contrast

On white

9.31
#2F39A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F39A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39A6
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39A6#FFFFFF#000000##FFFFFF
##2F39A61.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f39a6;
/* rgb */ color: rgb(47, 57, 166);
/* oklch */ color: oklch(41.1% 0.173 272.1);
Tailwind
colors: {
  custom: {
    50: '#796fc1',
    500: '#2f39a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f39a6;
$custom-light: #796fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39a6",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 166
  },
  "hsl": {
    "h": 234.958,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41104,
    "c": 0.17283,
    "h": 272.1
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

primary
#2F39A6
secondary
#C1BA70
accent
#D349DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F39A6

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

Preview Lab → · Contrast checker → · Palette generator →

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