#2F4393#2F4393

#2F4393 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.4% C 0.134 H 269.2°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#2F4393
RGBrgb(47, 67, 147)
HSLhsl(228, 52%, 38%)
HSVhsv(228, 68%, 58%)
CMYKcmyk(68%, 54.4%, 0%, 42.4%)
CIE-LABlab(31.17, 19.78, -46.53)
CIE-LCHlch(31.17, 50.56, 293.03°)
OKLaboklab(41.4% -0.0018 -0.1337)
OKLCHoklch(41.4% 0.134 269.2)
XYZxyz(8.4441, 6.7244, 28.4510)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4393 #937F2F
analogous
#2F7593 #2F4393 #4D2F93
triadic
#2F4393 #932F43 #43932F
tetradic
#2F4393 #932F75 #937F2F #2F934D
square
#2F4393 #932F75 #937F2F #2F934D
split-complementary
#2F4393 #934D2F #75932F
monochromatic
#111936 #202E65 #2F4393 #3E58C1 #6C80D0

Accessibility & contrast

On white

8.96
#2F4393 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4393
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4393#FFFFFF#000000##FFFFFF
##2F43931.008.962.358.96
#FFFFFF8.961.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4E96
Deuteranopia (green-blind)
#004591
Tritanopia (blue-blind)
#005664
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4393;
/* rgb */ color: rgb(47, 67, 147);
/* oklch */ color: oklch(41.4% 0.134 269.2);
Tailwind
colors: {
  custom: {
    50: '#7476b3',
    500: '#2f4393',
    950: '#000000',
  },
}
SCSS
$custom: #2f4393;
$custom-light: #7476b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4393",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 147
  },
  "hsl": {
    "h": 228,
    "s": 51.546,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41404,
    "c": 0.13371,
    "h": 269.2
  },
  "luminance": 0.06725
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4393

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

Preview Lab → · Contrast checker → · Palette generator →

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