#2F40BD#2F40BD

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

Color values

HEX#2F40BD
RGBrgb(47, 64, 189)
HSLhsl(233, 60%, 46%)
HSVhsv(233, 75%, 74%)
CMYKcmyk(75.1%, 66.1%, 0%, 25.9%)
CIE-LABlab(33.87, 37.20, -67.32)
CIE-LCHlch(33.87, 76.91, 298.92°)
OKLaboklab(44.48% 0.0003 -0.1947)
OKLCHoklch(44.48% 0.195 270.1)
XYZxyz(12.1879, 7.9439, 49.0253)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F40BD #BDAC2F
analogous
#2F87BD #2F40BD #652FBD
triadic
#2F40BD #BD2F40 #40BD2F
tetradic
#2F40BD #BD2F87 #BDAC2F #2FBD65
square
#2F40BD #BD2F87 #BDAC2F #2FBD65
split-complementary
#2F40BD #BD652F #87BD2F
monochromatic
#171F5B #232F8C #2F40BD #5564D5 #8691E1

Accessibility & contrast

On white

8.11
#2F40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F40BD
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F40BD#FFFFFF#000000##FFFFFF
##2F40BD1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0049BB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f40bd;
/* rgb */ color: rgb(47, 64, 189);
/* oklch */ color: oklch(44.5% 0.195 270.1);
Tailwind
colors: {
  custom: {
    50: '#7d75d2',
    500: '#2f40bd',
    950: '#000000',
  },
}
SCSS
$custom: #2f40bd;
$custom-light: #7d75d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f40bd",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 232.817,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4448,
    "c": 0.19473,
    "h": 270.1
  },
  "luminance": 0.07945
}

Semantic roles & 50–950 ramp

primary
#2F40BD
secondary
#CAC17E
accent
#D044E3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2F40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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