#2F4598#2F4598

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

Color values

HEX#2F4598
RGBrgb(47, 69, 152)
HSLhsl(227, 53%, 39%)
HSVhsv(227, 69%, 60%)
CMYKcmyk(69.1%, 54.6%, 0%, 40.4%)
CIE-LABlab(32.09, 20.31, -48.09)
CIE-LCHlch(32.09, 52.20, 292.90°)
OKLaboklab(42.22% -0.0033 -0.1382)
OKLCHoklch(42.22% 0.138 268.6)
XYZxyz(8.9660, 7.1267, 30.6028)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4598 #98822F
analogous
#2F7A98 #2F4598 #4E2F98
triadic
#2F4598 #982F45 #45982F
tetradic
#2F4598 #982F7A #98822F #2F984E
square
#2F4598 #982F7A #98822F #2F984E
split-complementary
#2F4598 #984E2F #7A982F
monochromatic
#121B3B #213069 #2F4598 #405CC4 #6F84D2

Accessibility & contrast

On white

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

On black

2.43
#2F4598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F4598#FFFFFF#000000##FFFFFF
##2F45981.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09509B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f4598;
/* rgb */ color: rgb(47, 69, 152);
/* oklch */ color: oklch(42.2% 0.138 268.6);
Tailwind
colors: {
  custom: {
    50: '#7578b7',
    500: '#2f4598',
    950: '#000000',
  },
}
SCSS
$custom: #2f4598;
$custom-light: #7578b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4598",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 152
  },
  "hsl": {
    "h": 227.429,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42217,
    "c": 0.13828,
    "h": 268.6
  },
  "luminance": 0.07128
}

Semantic roles & 50–950 ramp

primary
#2F4598
secondary
#BAA969
accent
#BE4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4598

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

Preview Lab → · Contrast checker → · Palette generator →

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