#2F38B3#2F38B3

#2F38B3 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.2% C 0.191 H 271.7°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2F38B3
RGBrgb(47, 56, 179)
HSLhsl(236, 58%, 44%)
HSVhsv(236, 74%, 70%)
CMYKcmyk(73.7%, 68.7%, 0%, 29.8%)
CIE-LABlab(31.08, 38.64, -65.97)
CIE-LCHlch(31.08, 76.46, 300.36°)
OKLaboklab(42.17% 0.0058 -0.1908)
OKLCHoklch(42.17% 0.191 271.7)
XYZxyz(10.7204, 6.6862, 43.3647)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38B3 #B3AA2F
analogous
#2F7AB3 #2F38B3 #682FB3
triadic
#2F38B3 #B32F38 #38B32F
tetradic
#2F38B3 #B32F7A #B3AA2F #2FB368
square
#2F38B3 #B32F7A #B3AA2F #2FB368
split-complementary
#2F38B3 #B3682F #7AB32F
monochromatic
#161A52 #222983 #2F38B3 #4F57D1 #7F85DD

Accessibility & contrast

On white

8.98
#2F38B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F38B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38B3
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38B3#FFFFFF#000000##FFFFFF
##2F38B31.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f38b3;
/* rgb */ color: rgb(47, 56, 179);
/* oklch */ color: oklch(42.2% 0.191 271.7);
Tailwind
colors: {
  custom: {
    50: '#7c6fcb',
    500: '#2f38b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f38b3;
$custom-light: #7c6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38b3",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 235.909,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42174,
    "c": 0.19092,
    "h": 271.7
  },
  "luminance": 0.06687
}

Semantic roles & 50–950 ramp

primary
#2F38B3
secondary
#C6C178
accent
#D746E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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