#2F40AE#2F40AE

#2F40AE is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.175 H 270.4°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2F40AE
RGBrgb(47, 64, 174)
HSLhsl(232, 57%, 43%)
HSVhsv(232, 73%, 68%)
CMYKcmyk(73%, 63.2%, 0%, 31.8%)
CIE-LABlab(32.54, 31.78, -60.61)
CIE-LCHlch(32.54, 68.44, 297.67°)
OKLaboklab(43.1% 0.0011 -0.1751)
OKLCHoklch(43.1% 0.175 270.4)
XYZxyz(10.6431, 7.3260, 40.8893)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F40AE #AE9D2F
analogous
#2F7FAE #2F40AE #5E2FAE
triadic
#2F40AE #AE2F40 #40AE2F
tetradic
#2F40AE #AE2F7F #AE9D2F #2FAE5E
square
#2F40AE #AE2F7F #AE9D2F #2FAE5E
split-complementary
#2F40AE #AE5E2F #7FAE2F
monochromatic
#151D4E #222E7E #2F40AE #4C5DCF #7C89DC

Accessibility & contrast

On white

8.52
#2F40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F40AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F40AE
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F40AE#FFFFFF#000000##FFFFFF
##2F40AE1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f40ae;
/* rgb */ color: rgb(47, 64, 174);
/* oklch */ color: oklch(43.1% 0.175 270.4);
Tailwind
colors: {
  custom: {
    50: '#7a74c7',
    500: '#2f40ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f40ae;
$custom-light: #7a74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f40ae",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 231.969,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43098,
    "c": 0.17509,
    "h": 270.4
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#2F40AE
secondary
#C4B975
accent
#CC47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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