#2F38B7#2F38B7

#2F38B7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.196 H 271.6°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#2F38B7
RGBrgb(47, 56, 183)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 72%)
CMYKcmyk(74.3%, 69.4%, 0%, 28.2%)
CIE-LABlab(31.46, 40.04, -67.72)
CIE-LCHlch(31.46, 78.67, 300.59°)
OKLaboklab(42.57% 0.0054 -0.1959)
OKLCHoklch(42.57% 0.196 271.6)
XYZxyz(11.1308, 6.8504, 45.5262)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38B7 #B7AE2F
analogous
#2F7CB7 #2F38B7 #6A2FB7
triadic
#2F38B7 #B72F38 #38B72F
tetradic
#2F38B7 #B72F7C #B7AE2F #2FB76A
square
#2F38B7 #B72F7C #B7AE2F #2FB76A
split-complementary
#2F38B7 #B76A2F #7CB72F
monochromatic
#161A56 #222986 #2F38B7 #5159D2 #8288DF

Accessibility & contrast

On white

8.86
#2F38B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F38B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38B7
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38B7#FFFFFF#000000##FFFFFF
##2F38B71.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0044B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f38b7;
/* rgb */ color: rgb(47, 56, 183);
/* oklch */ color: oklch(42.6% 0.196 271.6);
Tailwind
colors: {
  custom: {
    50: '#7d6fce',
    500: '#2f38b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f38b7;
$custom-light: #7d6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38b7",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 236.029,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42566,
    "c": 0.196,
    "h": 271.6
  },
  "luminance": 0.06852
}

Semantic roles & 50–950 ramp

primary
#2F38B7
secondary
#C8C37A
accent
#D845E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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