#2F4698#2F4698

#2F4698 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.137 H 268.2°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2F4698
RGBrgb(47, 70, 152)
HSLhsl(227, 53%, 39%)
HSVhsv(227, 69%, 60%)
CMYKcmyk(69.1%, 53.9%, 0%, 40.4%)
CIE-LABlab(32.37, 19.64, -47.64)
CIE-LCHlch(32.37, 51.53, 292.40°)
OKLaboklab(42.43% -0.0042 -0.1369)
OKLCHoklch(42.43% 0.137 268.2)
XYZxyz(9.0280, 7.2508, 30.6234)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4698 #98812F
analogous
#2F7B98 #2F4698 #4D2F98
triadic
#2F4698 #982F46 #46982F
tetradic
#2F4698 #982F7B #98812F #2F984D
square
#2F4698 #982F7B #98812F #2F984D
split-complementary
#2F4698 #984D2F #7B982F
monochromatic
#121B3B #213069 #2F4698 #405DC4 #6F85D2

Accessibility & contrast

On white

8.57
#2F4698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2F4698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4698
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4698#FFFFFF#000000##FFFFFF
##2F46981.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4698;
/* rgb */ color: rgb(47, 70, 152);
/* oklch */ color: oklch(42.4% 0.137 268.2);
Tailwind
colors: {
  custom: {
    50: '#7479b7',
    500: '#2f4698',
    950: '#000000',
  },
}
SCSS
$custom: #2f4698;
$custom-light: #7479b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4698",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 152
  },
  "hsl": {
    "h": 226.857,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42426,
    "c": 0.13698,
    "h": 268.2
  },
  "luminance": 0.07252
}

Semantic roles & 50–950 ramp

primary
#2F4698
secondary
#BAA869
accent
#BD4CDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4698

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

Preview Lab → · Contrast checker → · Palette generator →

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