#2F40B3#2F40B3

#2F40B3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.182 H 270.3°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2F40B3
RGBrgb(47, 64, 179)
HSLhsl(232, 58%, 44%)
HSVhsv(232, 74%, 70%)
CMYKcmyk(73.7%, 64.2%, 0%, 29.8%)
CIE-LABlab(32.97, 33.60, -62.87)
CIE-LCHlch(32.97, 71.29, 298.12°)
OKLaboklab(43.55% 0.0009 -0.1817)
OKLCHoklch(43.55% 0.182 270.3)
XYZxyz(11.1396, 7.5246, 43.5044)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F40B3 #B3A22F
analogous
#2F82B3 #2F40B3 #602FB3
triadic
#2F40B3 #B32F40 #40B32F
tetradic
#2F40B3 #B32F82 #B3A22F #2FB360
square
#2F40B3 #B32F82 #B3A22F #2FB360
split-complementary
#2F40B3 #B3602F #82B32F
monochromatic
#161D52 #222F83 #2F40B3 #4F5FD1 #7F8BDD

Accessibility & contrast

On white

8.38
#2F40B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2F40B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F40B3
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F40B3#FFFFFF#000000##FFFFFF
##2F40B31.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f40b3;
/* rgb */ color: rgb(47, 64, 179);
/* oklch */ color: oklch(43.6% 0.182 270.3);
Tailwind
colors: {
  custom: {
    50: '#7b75cb',
    500: '#2f40b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f40b3;
$custom-light: #7b75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f40b3",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 232.273,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43552,
    "c": 0.18172,
    "h": 270.3
  },
  "luminance": 0.07526
}

Semantic roles & 50–950 ramp

primary
#2F40B3
secondary
#C6BC78
accent
#CE46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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