#2F4898#2F4898

#2F4898 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.8% C 0.134 H 267.4°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#2F4898
RGBrgb(47, 72, 152)
HSLhsl(226, 53%, 39%)
HSVhsv(226, 69%, 60%)
CMYKcmyk(69.1%, 52.6%, 0%, 40.4%)
CIE-LABlab(32.93, 18.29, -46.73)
CIE-LCHlch(32.93, 50.19, 291.38°)
OKLaboklab(42.85% -0.0061 -0.1342)
OKLCHoklch(42.85% 0.134 267.4)
XYZxyz(9.1552, 7.5052, 30.6658)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4898 #987F2F
analogous
#2F7D98 #2F4898 #4B2F98
triadic
#2F4898 #982F48 #48982F
tetradic
#2F4898 #982F7D #987F2F #2F984B
square
#2F4898 #982F7D #987F2F #2F984B
split-complementary
#2F4898 #984B2F #7D982F
monochromatic
#121C3B #213269 #2F4898 #4060C4 #6F87D2

Accessibility & contrast

On white

8.40
#2F4898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F4898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4898
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4898#FFFFFF#000000##FFFFFF
##2F48981.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16529B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#005B69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4898;
/* rgb */ color: rgb(47, 72, 152);
/* oklch */ color: oklch(42.8% 0.134 267.4);
Tailwind
colors: {
  custom: {
    50: '#747ab7',
    500: '#2f4898',
    950: '#000000',
  },
}
SCSS
$custom: #2f4898;
$custom-light: #747ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4898",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 152
  },
  "hsl": {
    "h": 225.714,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42849,
    "c": 0.13436,
    "h": 267.4
  },
  "luminance": 0.07506
}

Semantic roles & 50–950 ramp

primary
#2F4898
secondary
#BAA769
accent
#BA4CDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4898

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

Preview Lab → · Contrast checker → · Palette generator →

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