#2F419D#2F419D

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

Color values

HEX#2F419D
RGBrgb(47, 65, 157)
HSLhsl(230, 54%, 40%)
HSVhsv(230, 70%, 62%)
CMYKcmyk(70.1%, 58.6%, 0%, 38.4%)
CIE-LABlab(31.39, 24.86, -52.26)
CIE-LCHlch(31.39, 57.87, 295.44°)
OKLaboklab(41.81% 0.0005 -0.1506)
OKLCHoklch(41.81% 0.151 270.2)
XYZxyz(9.1463, 6.8184, 32.7258)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F419D #9D8B2F
analogous
#2F789D #2F419D #542F9D
triadic
#2F419D #9D2F41 #419D2F
tetradic
#2F419D #9D2F78 #9D8B2F #2F9D54
square
#2F419D #9D2F78 #9D8B2F #2F9D54
split-complementary
#2F419D #9D542F #789D2F
monochromatic
#131A3F #212D6E #2F419D #4358C7 #7282D5

Accessibility & contrast

On white

8.88
#2F419D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2F419D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F419D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F419D#FFFFFF#000000##FFFFFF
##2F419D1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#005868
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f419d;
/* rgb */ color: rgb(47, 65, 157);
/* oklch */ color: oklch(41.8% 0.151 270.2);
Tailwind
colors: {
  custom: {
    50: '#7675bb',
    500: '#2f419d',
    950: '#000000',
  },
}
SCSS
$custom: #2f419d;
$custom-light: #7675bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f419d",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 157
  },
  "hsl": {
    "h": 230.182,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.41809,
    "c": 0.15058,
    "h": 270.2
  },
  "luminance": 0.06819
}

Semantic roles & 50–950 ramp

primary
#2F419D
secondary
#BCAF6B
accent
#C54BDD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F419D

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

Preview Lab → · Contrast checker → · Palette generator →

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