#2F38B4#2F38B4

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

Color values

HEX#2F38B4
RGBrgb(47, 56, 180)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 71%)
CMYKcmyk(73.9%, 68.9%, 0%, 29.4%)
CIE-LABlab(31.18, 38.99, -66.41)
CIE-LCHlch(31.18, 77.01, 300.42°)
OKLaboklab(42.27% 0.0057 -0.1921)
OKLCHoklch(42.27% 0.192 271.7)
XYZxyz(10.8219, 6.7268, 43.8992)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38B4 #B4AB2F
analogous
#2F7BB4 #2F38B4 #692FB4
triadic
#2F38B4 #B42F38 #38B42F
tetradic
#2F38B4 #B42F7B #B4AB2F #2FB469
square
#2F38B4 #B42F7B #B4AB2F #2FB469
split-complementary
#2F38B4 #B4692F #7BB42F
monochromatic
#161A53 #222983 #2F38B4 #4F58D1 #8086DE

Accessibility & contrast

On white

8.95
#2F38B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F38B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38B4
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38B4#FFFFFF#000000##FFFFFF
##2F38B41.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0043B2
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f38b4;
/* rgb */ color: rgb(47, 56, 180);
/* oklch */ color: oklch(42.3% 0.192 271.7);
Tailwind
colors: {
  custom: {
    50: '#7c6fcc',
    500: '#2f38b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f38b4;
$custom-light: #7c6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38b4",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 235.94,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42271,
    "c": 0.19219,
    "h": 271.7
  },
  "luminance": 0.06728
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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