#2F4694#2F4694

#2F4694 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.131 H 268.0°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#2F4694
RGBrgb(47, 70, 148)
HSLhsl(226, 52%, 38%)
HSVhsv(226, 68%, 58%)
CMYKcmyk(68.2%, 52.7%, 0%, 42%)
CIE-LABlab(32.08, 18.13, -45.67)
CIE-LCHlch(32.08, 49.14, 291.66°)
OKLaboklab(42.12% -0.0046 -0.1311)
OKLCHoklch(42.12% 0.131 268)
XYZxyz(8.7059, 7.1219, 28.9271)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4694 #947D2F
analogous
#2F7894 #2F4694 #4A2F94
triadic
#2F4694 #942F46 #46942F
tetradic
#2F4694 #942F78 #947D2F #2F944A
square
#2F4694 #942F78 #947D2F #2F944A
split-complementary
#2F4694 #944A2F #78942F
monochromatic
#111A37 #203066 #2F4694 #3E5CC2 #6D84D1

Accessibility & contrast

On white

8.66
#2F4694 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F4694 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4694
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4694#FFFFFF#000000##FFFFFF
##2F46941.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165097
Deuteranopia (green-blind)
#004792
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f4694;
/* rgb */ color: rgb(47, 70, 148);
/* oklch */ color: oklch(42.1% 0.131 268.0);
Tailwind
colors: {
  custom: {
    50: '#7479b4',
    500: '#2f4694',
    950: '#000000',
  },
}
SCSS
$custom: #2f4694;
$custom-light: #7479b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4694",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 148
  },
  "hsl": {
    "h": 226.337,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42116,
    "c": 0.13119,
    "h": 268
  },
  "luminance": 0.07123
}

Semantic roles & 50–950 ramp

primary
#2F4694
secondary
#B8A567
accent
#BB4DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4694

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

Preview Lab → · Contrast checker → · Palette generator →

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