#2F39A5#2F39A5

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

Color values

HEX#2F39A5
RGBrgb(47, 57, 165)
HSLhsl(235, 56%, 42%)
HSVhsv(235, 72%, 65%)
CMYKcmyk(71.5%, 65.5%, 0%, 35.3%)
CIE-LABlab(30.03, 33.04, -59.32)
CIE-LCHlch(30.03, 67.90, 299.12°)
OKLaboklab(41.01% 0.0064 -0.1714)
OKLCHoklch(41.01% 0.172 272.2)
XYZxyz(9.4247, 6.2463, 36.2990)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39A5 #A59B2F
analogous
#2F74A5 #2F39A5 #602FA5
triadic
#2F39A5 #A52F39 #39A52F
tetradic
#2F39A5 #A52F74 #A59B2F #2FA560
square
#2F39A5 #A52F74 #A59B2F #2FA560
split-complementary
#2F39A5 #A5602F #74A52F
monochromatic
#141846 #212975 #2F39A5 #4752CB #767FD8

Accessibility & contrast

On white

9.34
#2F39A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2F39A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39A5
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39A5#FFFFFF#000000##FFFFFF
##2F39A51.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#00556A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f39a5;
/* rgb */ color: rgb(47, 57, 165);
/* oklch */ color: oklch(41.0% 0.172 272.2);
Tailwind
colors: {
  custom: {
    50: '#786fc1',
    500: '#2f39a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f39a5;
$custom-light: #786fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39a5",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 165
  },
  "hsl": {
    "h": 234.915,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41011,
    "c": 0.1715,
    "h": 272.2
  },
  "luminance": 0.06247
}

Semantic roles & 50–950 ramp

primary
#2F39A5
secondary
#C0B970
accent
#D249DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F39A5

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

Preview Lab → · Contrast checker → · Palette generator →

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