#2F39CA#2F39CA

#2F39CA is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.6% C 0.218 H 270.6°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2F39CA
RGBrgb(47, 57, 202)
HSLhsl(236, 62%, 49%)
HSVhsv(236, 77%, 79%)
CMYKcmyk(76.7%, 71.8%, 0%, 20.8%)
CIE-LABlab(33.55, 45.96, -75.45)
CIE-LCHlch(33.55, 88.34, 301.35°)
OKLaboklab(44.63% 0.0025 -0.2185)
OKLCHoklch(44.63% 0.218 270.6)
XYZxyz(13.2925, 7.7934, 56.6694)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39CA #CAC02F
analogous
#2F87CA #2F39CA #732FCA
triadic
#2F39CA #CA2F39 #39CA2F
tetradic
#2F39CA #CA2F87 #CAC02F #2FCA73
square
#2F39CA #CA2F87 #CAC02F #2FCA73
split-complementary
#2F39CA #CA732F #87CA2F
monochromatic
#181D67 #232B98 #2F39CA #5D65D9 #8F94E5

Accessibility & contrast

On white

8.21
#2F39CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F39CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39CA
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39CA#FFFFFF#000000##FFFFFF
##2F39CA1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CE
Deuteranopia (green-blind)
#0047C7
Tritanopia (blue-blind)
#00627E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f39ca;
/* rgb */ color: rgb(47, 57, 202);
/* oklch */ color: oklch(44.6% 0.218 270.6);
Tailwind
colors: {
  custom: {
    50: '#8170db',
    500: '#2f39ca',
    950: '#000000',
  },
}
SCSS
$custom: #2f39ca;
$custom-light: #8170db;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39ca",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 202
  },
  "hsl": {
    "h": 236.129,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.44626,
    "c": 0.21847,
    "h": 270.6
  },
  "luminance": 0.07795
}

Semantic roles & 50–950 ramp

primary
#2F39CA
secondary
#CFCB86
accent
#DB42E5
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2F39CA

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

Preview Lab → · Contrast checker → · Palette generator →

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