#2F40BC#2F40BC

#2F40BC is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.193 H 270.1°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#2F40BC
RGBrgb(47, 64, 188)
HSLhsl(233, 60%, 46%)
HSVhsv(233, 75%, 74%)
CMYKcmyk(75%, 66%, 0%, 26.3%)
CIE-LABlab(33.78, 36.84, -66.88)
CIE-LCHlch(33.78, 76.35, 298.85°)
OKLaboklab(44.39% 0.0003 -0.1934)
OKLCHoklch(44.39% 0.193 270.1)
XYZxyz(12.0797, 7.9007, 48.4556)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F40BC #BCAB2F
analogous
#2F86BC #2F40BC #642FBC
triadic
#2F40BC #BC2F40 #40BC2F
tetradic
#2F40BC #BC2F86 #BCAB2F #2FBC64
square
#2F40BC #BC2F86 #BCAB2F #2FBC64
split-complementary
#2F40BC #BC642F #86BC2F
monochromatic
#171F5A #232F8B #2F40BC #5463D4 #8590E0

Accessibility & contrast

On white

8.14
#2F40BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2F40BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F40BC
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F40BC#FFFFFF#000000##FFFFFF
##2F40BC1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f40bc;
/* rgb */ color: rgb(47, 64, 188);
/* oklch */ color: oklch(44.4% 0.193 270.1);
Tailwind
colors: {
  custom: {
    50: '#7d75d1',
    500: '#2f40bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f40bc;
$custom-light: #7d75d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f40bc",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 232.766,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44386,
    "c": 0.19344,
    "h": 270.1
  },
  "luminance": 0.07902
}

Semantic roles & 50–950 ramp

primary
#2F40BC
secondary
#CAC17D
accent
#D045E3
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2F40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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