#2F38B0#2F38B0

#2F38B0 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.187 H 271.9°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2F38B0
RGBrgb(47, 56, 176)
HSLhsl(236, 58%, 44%)
HSVhsv(236, 73%, 69%)
CMYKcmyk(73.3%, 68.2%, 0%, 31%)
CIE-LABlab(30.80, 37.59, -64.65)
CIE-LCHlch(30.80, 74.78, 300.17°)
OKLaboklab(41.88% 0.0061 -0.187)
OKLCHoklch(41.88% 0.187 271.9)
XYZxyz(10.4203, 6.5662, 41.7841)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38B0 #B0A72F
analogous
#2F78B0 #2F38B0 #662FB0
triadic
#2F38B0 #B02F38 #38B02F
tetradic
#2F38B0 #B02F78 #B0A72F #2FB066
square
#2F38B0 #B02F78 #B0A72F #2FB066
split-complementary
#2F38B0 #B0662F #78B02F
monochromatic
#15194F #222980 #2F38B0 #4D56CF #7D84DC

Accessibility & contrast

On white

9.08
#2F38B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F38B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38B0
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38B0#FFFFFF#000000##FFFFFF
##2F38B01.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB4
Deuteranopia (green-blind)
#0042AE
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f38b0;
/* rgb */ color: rgb(47, 56, 176);
/* oklch */ color: oklch(41.9% 0.187 271.9);
Tailwind
colors: {
  custom: {
    50: '#7b6fc9',
    500: '#2f38b0',
    950: '#000000',
  },
}
SCSS
$custom: #2f38b0;
$custom-light: #7b6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38b0",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 176
  },
  "hsl": {
    "h": 235.814,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41882,
    "c": 0.18707,
    "h": 271.9
  },
  "luminance": 0.06567
}

Semantic roles & 50–950 ramp

primary
#2F38B0
secondary
#C5BF76
accent
#D647E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F38B0

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

Preview Lab → · Contrast checker → · Palette generator →

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