#2F38AB#2F38AB

#2F38AB is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.181 H 272.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2F38AB
RGBrgb(47, 56, 171)
HSLhsl(236, 57%, 43%)
HSVhsv(236, 73%, 67%)
CMYKcmyk(72.5%, 67.3%, 0%, 32.9%)
CIE-LABlab(30.33, 35.82, -62.43)
CIE-LCHlch(30.33, 71.97, 299.85°)
OKLaboklab(41.4% 0.0066 -0.1805)
OKLCHoklch(41.4% 0.181 272.1)
XYZxyz(9.9347, 6.3720, 39.2265)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38AB #ABA22F
analogous
#2F76AB #2F38AB #642FAB
triadic
#2F38AB #AB2F38 #38AB2F
tetradic
#2F38AB #AB2F76 #ABA22F #2FAB64
square
#2F38AB #AB2F76 #ABA22F #2FAB64
split-complementary
#2F38AB #AB642F #76AB2F
monochromatic
#15194B #22287B #2F38AB #4A53CD #7A81DA

Accessibility & contrast

On white

9.23
#2F38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38AB
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38AB#FFFFFF#000000##FFFFFF
##2F38AB1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f38ab;
/* rgb */ color: rgb(47, 56, 171);
/* oklch */ color: oklch(41.4% 0.181 272.1);
Tailwind
colors: {
  custom: {
    50: '#7a6fc5',
    500: '#2f38ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f38ab;
$custom-light: #7a6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38ab",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 235.645,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41402,
    "c": 0.18059,
    "h": 272.1
  },
  "luminance": 0.06373
}

Semantic roles & 50–950 ramp

primary
#2F38AB
secondary
#C3BD73
accent
#D548E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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