#2F409F#2F409F

#2F409F is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.155 H 270.5°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2F409F
RGBrgb(47, 64, 159)
HSLhsl(231, 54%, 40%)
HSVhsv(231, 70%, 62%)
CMYKcmyk(70.4%, 59.7%, 0%, 37.6%)
CIE-LABlab(31.29, 26.27, -53.64)
CIE-LCHlch(31.29, 59.73, 296.09°)
OKLaboklab(41.78% 0.0013 -0.1546)
OKLCHoklch(41.78% 0.155 270.5)
XYZxyz(9.2616, 6.7734, 33.6135)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F409F #9F8E2F
analogous
#2F789F #2F409F #562F9F
triadic
#2F409F #9F2F40 #409F2F
tetradic
#2F409F #9F2F78 #9F8E2F #2F9F56
square
#2F409F #9F2F78 #9F8E2F #2F9F56
split-complementary
#2F409F #9F562F #789F2F
monochromatic
#131A41 #212D70 #2F409F #4458C8 #7382D6

Accessibility & contrast

On white

8.92
#2F409F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F409F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F409F
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F409F#FFFFFF#000000##FFFFFF
##2F409F1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f409f;
/* rgb */ color: rgb(47, 64, 159);
/* oklch */ color: oklch(41.8% 0.155 270.5);
Tailwind
colors: {
  custom: {
    50: '#7674bc',
    500: '#2f409f',
    950: '#000000',
  },
}
SCSS
$custom: #2f409f;
$custom-light: #7674bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f409f",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 159
  },
  "hsl": {
    "h": 230.893,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41782,
    "c": 0.15466,
    "h": 270.5
  },
  "luminance": 0.06774
}

Semantic roles & 50–950 ramp

primary
#2F409F
secondary
#BDB16D
accent
#C74ADE
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F409F

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

Preview Lab → · Contrast checker → · Palette generator →

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