#2F4498#2F4498

#2F4498 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.0% C 0.140 H 269.0°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#2F4498
RGBrgb(47, 68, 152)
HSLhsl(228, 53%, 39%)
HSVhsv(228, 69%, 60%)
CMYKcmyk(69.1%, 55.3%, 0%, 40.4%)
CIE-LABlab(31.82, 20.98, -48.53)
CIE-LCHlch(31.82, 52.88, 293.38°)
OKLaboklab(42.01% -0.0024 -0.1396)
OKLCHoklch(42.01% 0.14 269)
XYZxyz(8.9050, 7.0047, 30.5824)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4498 #98832F
analogous
#2F7998 #2F4498 #4F2F98
triadic
#2F4498 #982F44 #44982F
tetradic
#2F4498 #982F79 #98832F #2F984F
square
#2F4498 #982F79 #98832F #2F984F
split-complementary
#2F4498 #984F2F #79982F
monochromatic
#121A3B #212F69 #2F4498 #405BC4 #6F83D2

Accessibility & contrast

On white

8.75
#2F4498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F4498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4498
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4498#FFFFFF#000000##FFFFFF
##2F44981.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03509B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f4498;
/* rgb */ color: rgb(47, 68, 152);
/* oklch */ color: oklch(42.0% 0.140 269.0);
Tailwind
colors: {
  custom: {
    50: '#7577b7',
    500: '#2f4498',
    950: '#000000',
  },
}
SCSS
$custom: #2f4498;
$custom-light: #7577b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4498",
  "rgb": {
    "r": 47,
    "g": 68,
    "b": 152
  },
  "hsl": {
    "h": 228,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42009,
    "c": 0.13959,
    "h": 269
  },
  "luminance": 0.07006
}

Semantic roles & 50–950 ramp

primary
#2F4498
secondary
#BAAA69
accent
#BF4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4498

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

Preview Lab → · Contrast checker → · Palette generator →

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