#2F38B5#2F38B5

#2F38B5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.193 H 271.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2F38B5
RGBrgb(47, 56, 181)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 71%)
CMYKcmyk(74%, 69.1%, 0%, 29%)
CIE-LABlab(31.27, 39.34, -66.85)
CIE-LCHlch(31.27, 77.57, 300.48°)
OKLaboklab(42.37% 0.0056 -0.1934)
OKLCHoklch(42.37% 0.193 271.7)
XYZxyz(10.9241, 6.7677, 44.4377)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38B5 #B5AC2F
analogous
#2F7BB5 #2F38B5 #692FB5
triadic
#2F38B5 #B52F38 #38B52F
tetradic
#2F38B5 #B52F7B #B5AC2F #2FB569
square
#2F38B5 #B52F7B #B5AC2F #2FB569
split-complementary
#2F38B5 #B5692F #7BB52F
monochromatic
#161A54 #222984 #2F38B5 #5058D1 #8087DE

Accessibility & contrast

On white

8.92
#2F38B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F38B5
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38B5#FFFFFF#000000##FFFFFF
##2F38B51.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f38b5;
/* rgb */ color: rgb(47, 56, 181);
/* oklch */ color: oklch(42.4% 0.193 271.7);
Tailwind
colors: {
  custom: {
    50: '#7c6fcc',
    500: '#2f38b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f38b5;
$custom-light: #7c6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38b5",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 235.97,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42369,
    "c": 0.19347,
    "h": 271.7
  },
  "luminance": 0.06769
}

Semantic roles & 50–950 ramp

primary
#2F38B5
secondary
#C7C279
accent
#D746E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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