#2F38B6#2F38B6

#2F38B6 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.195 H 271.6°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2F38B6
RGBrgb(47, 56, 182)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 71%)
CMYKcmyk(74.2%, 69.2%, 0%, 28.6%)
CIE-LABlab(31.37, 39.69, -67.28)
CIE-LCHlch(31.37, 78.12, 300.54°)
OKLaboklab(42.47% 0.0055 -0.1947)
OKLCHoklch(42.47% 0.195 271.6)
XYZxyz(11.0271, 6.8089, 44.9800)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38B6 #B6AD2F
analogous
#2F7CB6 #2F38B6 #6A2FB6
triadic
#2F38B6 #B62F38 #38B62F
tetradic
#2F38B6 #B62F7C #B6AD2F #2FB66A
square
#2F38B6 #B62F7C #B6AD2F #2FB66A
split-complementary
#2F38B6 #B66A2F #7CB62F
monochromatic
#161A55 #222985 #2F38B6 #5059D2 #8187DE

Accessibility & contrast

On white

8.89
#2F38B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2F38B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38B6
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38B6#FFFFFF#000000##FFFFFF
##2F38B61.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#0043B4
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f38b6;
/* rgb */ color: rgb(47, 56, 182);
/* oklch */ color: oklch(42.5% 0.195 271.6);
Tailwind
colors: {
  custom: {
    50: '#7c6fcd',
    500: '#2f38b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f38b6;
$custom-light: #7c6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38b6",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 236,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42467,
    "c": 0.19474,
    "h": 271.6
  },
  "luminance": 0.0681
}

Semantic roles & 50–950 ramp

primary
#2F38B6
secondary
#C7C279
accent
#D846E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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