#2F4394#2F4394

#2F4394 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.5% C 0.135 H 269.3°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2F4394
RGBrgb(47, 67, 148)
HSLhsl(228, 52%, 38%)
HSVhsv(228, 68%, 58%)
CMYKcmyk(68.2%, 54.7%, 0%, 42%)
CIE-LABlab(31.24, 20.15, -47.02)
CIE-LCHlch(31.24, 51.16, 293.20°)
OKLaboklab(41.48% -0.0017 -0.1351)
OKLCHoklch(41.48% 0.135 269.3)
XYZxyz(8.5229, 6.7560, 28.8661)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4394 #94802F
analogous
#2F7594 #2F4394 #4D2F94
triadic
#2F4394 #942F43 #43942F
tetradic
#2F4394 #942F75 #94802F #2F944D
square
#2F4394 #942F75 #94802F #2F944D
split-complementary
#2F4394 #944D2F #75942F
monochromatic
#111937 #202E66 #2F4394 #3E58C2 #6D81D1

Accessibility & contrast

On white

8.93
#2F4394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F4394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4394
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4394#FFFFFF#000000##FFFFFF
##2F43941.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094E97
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f4394;
/* rgb */ color: rgb(47, 67, 148);
/* oklch */ color: oklch(41.5% 0.135 269.3);
Tailwind
colors: {
  custom: {
    50: '#7476b4',
    500: '#2f4394',
    950: '#000000',
  },
}
SCSS
$custom: #2f4394;
$custom-light: #7476b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4394",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 148
  },
  "hsl": {
    "h": 228.119,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41483,
    "c": 0.13515,
    "h": 269.3
  },
  "luminance": 0.06757
}

Semantic roles & 50–950 ramp

primary
#2F4394
secondary
#B8A867
accent
#BF4DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4394

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

Preview Lab → · Contrast checker → · Palette generator →

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