#2F419E#2F419E

#2F419E is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.152 H 270.2°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#2F419E
RGBrgb(47, 65, 158)
HSLhsl(230, 54%, 40%)
HSVhsv(230, 70%, 62%)
CMYKcmyk(70.3%, 58.9%, 0%, 38%)
CIE-LABlab(31.47, 25.23, -52.74)
CIE-LCHlch(31.47, 58.46, 295.57°)
OKLaboklab(41.89% 0.0005 -0.152)
OKLCHoklch(41.89% 0.152 270.2)
XYZxyz(9.2320, 6.8527, 33.1773)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F419E #9E8C2F
analogous
#2F799E #2F419E #542F9E
triadic
#2F419E #9E2F41 #419E2F
tetradic
#2F419E #9E2F79 #9E8C2F #2F9E54
square
#2F419E #9E2F79 #9E8C2F #2F9E54
split-complementary
#2F419E #9E542F #799E2F
monochromatic
#131A40 #212E6F #2F419E #4359C7 #7282D5

Accessibility & contrast

On white

8.86
#2F419E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F419E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F419E
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F419E#FFFFFF#000000##FFFFFF
##2F419E1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f419e;
/* rgb */ color: rgb(47, 65, 158);
/* oklch */ color: oklch(41.9% 0.152 270.2);
Tailwind
colors: {
  custom: {
    50: '#7675bb',
    500: '#2f419e',
    950: '#000000',
  },
}
SCSS
$custom: #2f419e;
$custom-light: #7675bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f419e",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 158
  },
  "hsl": {
    "h": 230.27,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41893,
    "c": 0.15198,
    "h": 270.2
  },
  "luminance": 0.06854
}

Semantic roles & 50–950 ramp

primary
#2F419E
secondary
#BDB06C
accent
#C64ADE
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F419E

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

Preview Lab → · Contrast checker → · Palette generator →

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