#2F419F#2F419F

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

Color values

HEX#2F419F
RGBrgb(47, 65, 159)
HSLhsl(230, 54%, 40%)
HSVhsv(230, 70%, 62%)
CMYKcmyk(70.4%, 59.1%, 0%, 37.6%)
CIE-LABlab(31.55, 25.60, -53.22)
CIE-LCHlch(31.55, 59.05, 295.69°)
OKLaboklab(41.98% 0.0005 -0.1534)
OKLCHoklch(41.98% 0.153 270.2)
XYZxyz(9.3185, 6.8872, 33.6324)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F419F #9F8D2F
analogous
#2F799F #2F419F #552F9F
triadic
#2F419F #9F2F41 #419F2F
tetradic
#2F419F #9F2F79 #9F8D2F #2F9F55
square
#2F419F #9F2F79 #9F8D2F #2F9F55
split-complementary
#2F419F #9F552F #799F2F
monochromatic
#131A41 #212E70 #2F419F #4459C8 #7383D6

Accessibility & contrast

On white

8.83
#2F419F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2F419F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F419F
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F419F#FFFFFF#000000##FFFFFF
##2F419F1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f419f;
/* rgb */ color: rgb(47, 65, 159);
/* oklch */ color: oklch(42.0% 0.153 270.2);
Tailwind
colors: {
  custom: {
    50: '#7675bc',
    500: '#2f419f',
    950: '#000000',
  },
}
SCSS
$custom: #2f419f;
$custom-light: #7675bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f419f",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 159
  },
  "hsl": {
    "h": 230.357,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41978,
    "c": 0.15338,
    "h": 270.2
  },
  "luminance": 0.06888
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F419F

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

Preview Lab → · Contrast checker → · Palette generator →

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