#2F418F#2F418F

#2F418F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.7% C 0.131 H 269.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2F418F
RGBrgb(47, 65, 143)
HSLhsl(229, 51%, 37%)
HSVhsv(229, 67%, 56%)
CMYKcmyk(67.1%, 54.5%, 0%, 43.9%)
CIE-LABlab(30.32, 19.63, -45.46)
CIE-LCHlch(30.32, 49.52, 293.36°)
OKLaboklab(40.67% -0.0002 -0.1306)
OKLCHoklch(40.67% 0.131 269.9)
XYZxyz(8.0188, 6.3674, 26.7877)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F418F #8F7D2F
analogous
#2F718F #2F418F #4D2F8F
triadic
#2F418F #8F2F41 #418F2F
tetradic
#2F418F #8F2F71 #8F7D2F #2F8F4D
square
#2F418F #8F2F71 #8F7D2F #2F8F4D
split-complementary
#2F418F #8F4D2F #718F2F
monochromatic
#111733 #202C61 #2F418F #3E56BD #6A7DCE

Accessibility & contrast

On white

9.24
#2F418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F418F
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F418F#FFFFFF#000000##FFFFFF
##2F418F1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4C92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f418f;
/* rgb */ color: rgb(47, 65, 143);
/* oklch */ color: oklch(40.7% 0.131 269.9);
Tailwind
colors: {
  custom: {
    50: '#7375b0',
    500: '#2f418f',
    950: '#000000',
  },
}
SCSS
$custom: #2f418f;
$custom-light: #7375b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f418f",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 228.75,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4067,
    "c": 0.13056,
    "h": 269.9
  },
  "luminance": 0.06368
}

Semantic roles & 50–950 ramp

primary
#2F418F
secondary
#B5A665
accent
#C04EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F418F

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

Preview Lab → · Contrast checker → · Palette generator →

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