#2F38BF#2F38BF

#2F38BF is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.4% C 0.206 H 271.2°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#2F38BF
RGBrgb(47, 56, 191)
HSLhsl(236, 61%, 47%)
HSVhsv(236, 75%, 75%)
CMYKcmyk(75.4%, 70.7%, 0%, 25.1%)
CIE-LABlab(32.24, 42.80, -71.16)
CIE-LCHlch(32.24, 83.04, 301.03°)
OKLaboklab(43.36% 0.0044 -0.206)
OKLCHoklch(43.36% 0.206 271.2)
XYZxyz(11.9872, 7.1930, 50.0367)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38BF #BFB62F
analogous
#2F80BF #2F38BF #6E2FBF
triadic
#2F38BF #BF2F38 #38BF2F
tetradic
#2F38BF #BF2F80 #BFB62F #2FBF6E
square
#2F38BF #BF2F80 #BFB62F #2FBF6E
split-complementary
#2F38BF #BF6E2F #80BF2F
monochromatic
#171B5D #232A8E #2F38BF #565ED5 #878DE1

Accessibility & contrast

On white

8.61
#2F38BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2F38BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38BF
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38BF#FFFFFF#000000##FFFFFF
##2F38BF1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#0045BD
Tritanopia (blue-blind)
#005E77
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f38bf;
/* rgb */ color: rgb(47, 56, 191);
/* oklch */ color: oklch(43.4% 0.206 271.2);
Tailwind
colors: {
  custom: {
    50: '#7f6fd4',
    500: '#2f38bf',
    950: '#000000',
  },
}
SCSS
$custom: #2f38bf;
$custom-light: #7f6fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38bf",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 236.25,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.43361,
    "c": 0.20602,
    "h": 271.2
  },
  "luminance": 0.07194
}

Semantic roles & 50–950 ramp

primary
#2F38BF
secondary
#CBC67F
accent
#DA44E4
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2F38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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