#2F418D#2F418D

#2F418D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.128 H 269.8°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2F418D
RGBrgb(47, 65, 141)
HSLhsl(229, 50%, 37%)
HSVhsv(229, 67%, 55%)
CMYKcmyk(66.7%, 53.9%, 0%, 44.7%)
CIE-LABlab(30.17, 18.89, -44.46)
CIE-LCHlch(30.17, 48.31, 293.02°)
OKLaboklab(40.51% -0.0004 -0.1276)
OKLCHoklch(40.51% 0.128 269.8)
XYZxyz(7.8687, 6.3073, 25.9969)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F418D #8D7B2F
analogous
#2F708D #2F418D #4C2F8D
triadic
#2F418D #8D2F41 #418D2F
tetradic
#2F418D #8D2F70 #8D7B2F #2F8D4C
square
#2F418D #8D2F70 #8D7B2F #2F8D4C
split-complementary
#2F418D #8D4C2F #708D2F
monochromatic
#101731 #202C5F #2F418D #3E56BB #697CCD

Accessibility & contrast

On white

9.29
#2F418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F418D
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F418D#FFFFFF#000000##FFFFFF
##2F418D1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114B90
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f418d;
/* rgb */ color: rgb(47, 65, 141);
/* oklch */ color: oklch(40.5% 0.128 269.8);
Tailwind
colors: {
  custom: {
    50: '#7275af',
    500: '#2f418d',
    950: '#000000',
  },
}
SCSS
$custom: #2f418d;
$custom-light: #7275af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f418d",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 228.511,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40514,
    "c": 0.12763,
    "h": 269.8
  },
  "luminance": 0.06308
}

Semantic roles & 50–950 ramp

primary
#2F418D
secondary
#B4A564
accent
#BF4EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F418D

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

Preview Lab → · Contrast checker → · Palette generator →

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