#2F4699#2F4699

#2F4699 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.5% C 0.138 H 268.3°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#2F4699
RGBrgb(47, 70, 153)
HSLhsl(227, 53%, 39%)
HSVhsv(227, 69%, 60%)
CMYKcmyk(69.3%, 54.2%, 0%, 40%)
CIE-LABlab(32.44, 20.01, -48.13)
CIE-LCHlch(32.44, 52.12, 292.58°)
OKLaboklab(42.5% -0.0041 -0.1383)
OKLCHoklch(42.5% 0.138 268.3)
XYZxyz(9.1102, 7.2837, 31.0566)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4699 #99822F
analogous
#2F7B99 #2F4699 #4D2F99
triadic
#2F4699 #992F46 #46992F
tetradic
#2F4699 #992F7B #99822F #2F994D
square
#2F4699 #992F7B #99822F #2F994D
split-complementary
#2F4699 #994D2F #7B992F
monochromatic
#121B3B #21316A #2F4699 #415DC5 #6F85D3

Accessibility & contrast

On white

8.55
#2F4699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2F4699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4699
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4699#FFFFFF#000000##FFFFFF
##2F46991.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C519C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4699;
/* rgb */ color: rgb(47, 70, 153);
/* oklch */ color: oklch(42.5% 0.138 268.3);
Tailwind
colors: {
  custom: {
    50: '#7579b8',
    500: '#2f4699',
    950: '#000000',
  },
}
SCSS
$custom: #2f4699;
$custom-light: #7579b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4699",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 153
  },
  "hsl": {
    "h": 226.981,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42504,
    "c": 0.1384,
    "h": 268.3
  },
  "luminance": 0.07285
}

Semantic roles & 50–950 ramp

primary
#2F4699
secondary
#BAA969
accent
#BD4BDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4699

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

Preview Lab → · Contrast checker → · Palette generator →

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