#2F38B1#2F38B1

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

Color values

HEX#2F38B1
RGBrgb(47, 56, 177)
HSLhsl(236, 58%, 44%)
HSVhsv(236, 73%, 69%)
CMYKcmyk(73.4%, 68.4%, 0%, 30.6%)
CIE-LABlab(30.89, 37.94, -65.09)
CIE-LCHlch(30.89, 75.34, 300.24°)
OKLaboklab(41.98% 0.006 -0.1883)
OKLCHoklch(41.98% 0.188 271.8)
XYZxyz(10.5196, 6.6059, 42.3071)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38B1 #B1A82F
analogous
#2F79B1 #2F38B1 #672FB1
triadic
#2F38B1 #B12F38 #38B12F
tetradic
#2F38B1 #B12F79 #B1A82F #2FB167
square
#2F38B1 #B12F79 #B1A82F #2FB167
split-complementary
#2F38B1 #B1672F #79B12F
monochromatic
#151950 #222981 #2F38B1 #4D56D0 #7E84DD

Accessibility & contrast

On white

9.05
#2F38B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F38B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38B1
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38B1#FFFFFF#000000##FFFFFF
##2F38B11.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f38b1;
/* rgb */ color: rgb(47, 56, 177);
/* oklch */ color: oklch(42.0% 0.188 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b6fc9',
    500: '#2f38b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f38b1;
$custom-light: #7b6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38b1",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 235.846,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41979,
    "c": 0.18836,
    "h": 271.8
  },
  "luminance": 0.06607
}

Semantic roles & 50–950 ramp

primary
#2F38B1
secondary
#C5C076
accent
#D747E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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