#2F409D#2F409D

#2F409D is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.152 H 270.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2F409D
RGBrgb(47, 64, 157)
HSLhsl(231, 54%, 40%)
HSVhsv(231, 70%, 62%)
CMYKcmyk(70.1%, 59.2%, 0%, 38.4%)
CIE-LABlab(31.12, 25.52, -52.69)
CIE-LCHlch(31.12, 58.55, 295.85°)
OKLaboklab(41.61% 0.0013 -0.1519)
OKLCHoklch(41.61% 0.152 270.5)
XYZxyz(9.0894, 6.7046, 32.7068)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F409D #9D8C2F
analogous
#2F779D #2F409D #552F9D
triadic
#2F409D #9D2F40 #409D2F
tetradic
#2F409D #9D2F77 #9D8C2F #2F9D55
square
#2F409D #9D2F77 #9D8C2F #2F9D55
split-complementary
#2F409D #9D552F #779D2F
monochromatic
#131A3F #212D6E #2F409D #4357C7 #7281D5

Accessibility & contrast

On white

8.97
#2F409D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F409D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F409D
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F409D#FFFFFF#000000##FFFFFF
##2F409D1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f409d;
/* rgb */ color: rgb(47, 64, 157);
/* oklch */ color: oklch(41.6% 0.152 270.5);
Tailwind
colors: {
  custom: {
    50: '#7674bb',
    500: '#2f409d',
    950: '#000000',
  },
}
SCSS
$custom: #2f409d;
$custom-light: #7674bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f409d",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 157
  },
  "hsl": {
    "h": 230.727,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.41612,
    "c": 0.15187,
    "h": 270.5
  },
  "luminance": 0.06705
}

Semantic roles & 50–950 ramp

primary
#2F409D
secondary
#BCB06B
accent
#C74BDD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F409D

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

Preview Lab → · Contrast checker → · Palette generator →

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