#2F38B2#2F38B2

#2F38B2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.1% C 0.190 H 271.8°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#2F38B2
RGBrgb(47, 56, 178)
HSLhsl(236, 58%, 44%)
HSVhsv(236, 74%, 70%)
CMYKcmyk(73.6%, 68.5%, 0%, 30.2%)
CIE-LABlab(30.99, 38.29, -65.53)
CIE-LCHlch(30.99, 75.90, 300.30°)
OKLaboklab(42.08% 0.0059 -0.1895)
OKLCHoklch(42.08% 0.19 271.8)
XYZxyz(10.6196, 6.6459, 42.8340)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38B2 #B2A92F
analogous
#2F7AB2 #2F38B2 #682FB2
triadic
#2F38B2 #B22F38 #38B22F
tetradic
#2F38B2 #B22F7A #B2A92F #2FB268
square
#2F38B2 #B22F7A #B2A92F #2FB268
split-complementary
#2F38B2 #B2682F #7AB22F
monochromatic
#151A51 #222982 #2F38B2 #4E57D0 #7E85DD

Accessibility & contrast

On white

9.02
#2F38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38B2
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38B2#FFFFFF#000000##FFFFFF
##2F38B21.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f38b2;
/* rgb */ color: rgb(47, 56, 178);
/* oklch */ color: oklch(42.1% 0.190 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b6fca',
    500: '#2f38b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f38b2;
$custom-light: #7b6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38b2",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 235.878,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42076,
    "c": 0.18964,
    "h": 271.8
  },
  "luminance": 0.06647
}

Semantic roles & 50–950 ramp

primary
#2F38B2
secondary
#C6C077
accent
#D746E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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