#2F3498#2F3498

#2F3498 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.160 H 274.0°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2F3498
RGBrgb(47, 52, 152)
HSLhsl(237, 53%, 39%)
HSVhsv(237, 69%, 60%)
CMYKcmyk(69.1%, 65.8%, 0%, 40.4%)
CIE-LABlab(27.65, 31.59, -55.33)
CIE-LCHlch(27.65, 63.71, 299.73°)
OKLaboklab(38.91% 0.0111 -0.1597)
OKLCHoklch(38.91% 0.16 274)
XYZxyz(8.0659, 5.3266, 30.3027)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3498 #98932F
analogous
#2F6998 #2F3498 #5F2F98
triadic
#2F3498 #982F34 #34982F
tetradic
#2F3498 #982F69 #98932F #2F985F
square
#2F3498 #982F69 #98932F #2F985F
split-complementary
#2F3498 #985F2F #69982F
monochromatic
#12143B #212469 #2F3498 #4046C4 #6F74D2

Accessibility & contrast

On white

10.17
#2F3498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F3498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3498
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3498#FFFFFF#000000##FFFFFF
##2F34981.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3498;
/* rgb */ color: rgb(47, 52, 152);
/* oklch */ color: oklch(38.9% 0.160 274.0);
Tailwind
colors: {
  custom: {
    50: '#766bb7',
    500: '#2f3498',
    950: '#000000',
  },
}
SCSS
$custom: #2f3498;
$custom-light: #766bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3498",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 237.143,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38913,
    "c": 0.16008,
    "h": 274
  },
  "luminance": 0.05327
}

Semantic roles & 50–950 ramp

primary
#2F3498
secondary
#BAB669
accent
#D54CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #2F3498

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

Preview Lab → · Contrast checker → · Palette generator →

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