#2F4396#2F4396

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

Color values

HEX#2F4396
RGBrgb(47, 67, 150)
HSLhsl(228, 52%, 39%)
HSVhsv(228, 69%, 59%)
CMYKcmyk(68.7%, 55.3%, 0%, 41.2%)
CIE-LABlab(31.39, 20.90, -48.00)
CIE-LCHlch(31.39, 52.36, 293.53°)
OKLaboklab(41.64% -0.0016 -0.138)
OKLCHoklch(41.64% 0.138 269.3)
XYZxyz(8.6826, 6.8198, 29.7070)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4396 #96822F
analogous
#2F7696 #2F4396 #4F2F96
triadic
#2F4396 #962F43 #43962F
tetradic
#2F4396 #962F76 #96822F #2F964F
square
#2F4396 #962F76 #96822F #2F964F
split-complementary
#2F4396 #964F2F #76962F
monochromatic
#121939 #202E67 #2F4396 #3F59C3 #6E81D2

Accessibility & contrast

On white

8.88
#2F4396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2F4396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4396
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4396#FFFFFF#000000##FFFFFF
##2F43961.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034F99
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f4396;
/* rgb */ color: rgb(47, 67, 150);
/* oklch */ color: oklch(41.6% 0.138 269.3);
Tailwind
colors: {
  custom: {
    50: '#7476b5',
    500: '#2f4396',
    950: '#000000',
  },
}
SCSS
$custom: #2f4396;
$custom-light: #7476b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4396",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 150
  },
  "hsl": {
    "h": 228.35,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41642,
    "c": 0.13804,
    "h": 269.3
  },
  "luminance": 0.06821
}

Semantic roles & 50–950 ramp

primary
#2F4396
secondary
#B9A968
accent
#C04CDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4396

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

Preview Lab → · Contrast checker → · Palette generator →

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