#2F40B0#2F40B0

#2F40B0 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.178 H 270.3°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#2F40B0
RGBrgb(47, 64, 176)
HSLhsl(232, 58%, 44%)
HSVhsv(232, 73%, 69%)
CMYKcmyk(73.3%, 63.6%, 0%, 31%)
CIE-LABlab(32.71, 32.51, -61.52)
CIE-LCHlch(32.71, 69.58, 297.86°)
OKLaboklab(43.28% 0.001 -0.1777)
OKLCHoklch(43.28% 0.178 270.3)
XYZxyz(10.8395, 7.4046, 41.9238)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F40B0 #B09F2F
analogous
#2F80B0 #2F40B0 #5E2FB0
triadic
#2F40B0 #B02F40 #40B02F
tetradic
#2F40B0 #B02F80 #B09F2F #2FB05E
square
#2F40B0 #B02F80 #B09F2F #2FB05E
split-complementary
#2F40B0 #B05E2F #80B02F
monochromatic
#151D4F #222E80 #2F40B0 #4D5ECF #7D8ADC

Accessibility & contrast

On white

8.46
#2F40B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2F40B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F40B0
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F40B0#FFFFFF#000000##FFFFFF
##2F40B01.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f40b0;
/* rgb */ color: rgb(47, 64, 176);
/* oklch */ color: oklch(43.3% 0.178 270.3);
Tailwind
colors: {
  custom: {
    50: '#7a74c9',
    500: '#2f40b0',
    950: '#000000',
  },
}
SCSS
$custom: #2f40b0;
$custom-light: #7a74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f40b0",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 232.093,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43279,
    "c": 0.17775,
    "h": 270.3
  },
  "luminance": 0.07406
}

Semantic roles & 50–950 ramp

primary
#2F40B0
secondary
#C5BB76
accent
#CD47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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