#2F39A2#2F39A2

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

Color values

HEX#2F39A2
RGBrgb(47, 57, 162)
HSLhsl(235, 55%, 41%)
HSVhsv(235, 71%, 64%)
CMYKcmyk(71%, 64.8%, 0%, 36.5%)
CIE-LABlab(29.76, 31.96, -57.95)
CIE-LCHlch(29.76, 66.18, 298.88°)
OKLaboklab(40.73% 0.0066 -0.1673)
OKLCHoklch(40.73% 0.167 272.3)
XYZxyz(9.1548, 6.1383, 34.8778)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39A2 #A2982F
analogous
#2F72A2 #2F39A2 #5E2FA2
triadic
#2F39A2 #A22F39 #39A22F
tetradic
#2F39A2 #A22F72 #A2982F #2FA25E
square
#2F39A2 #A22F72 #A2982F #2FA25E
split-complementary
#2F39A2 #A25E2F #72A22F
monochromatic
#131843 #212873 #2F39A2 #4551C9 #757DD7

Accessibility & contrast

On white

9.43
#2F39A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F39A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39A2
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39A2#FFFFFF#000000##FFFFFF
##2F39A21.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f39a2;
/* rgb */ color: rgb(47, 57, 162);
/* oklch */ color: oklch(40.7% 0.167 272.3);
Tailwind
colors: {
  custom: {
    50: '#786fbe',
    500: '#2f39a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f39a2;
$custom-light: #786fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39a2",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 162
  },
  "hsl": {
    "h": 234.783,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40733,
    "c": 0.16748,
    "h": 272.3
  },
  "luminance": 0.06139
}

Semantic roles & 50–950 ramp

primary
#2F39A2
secondary
#BFB86E
accent
#D149DE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F39A2

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

Preview Lab → · Contrast checker → · Palette generator →

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