#2F3598#2F3598

#2F3598 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.159 H 273.7°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2F3598
RGBrgb(47, 53, 152)
HSLhsl(237, 53%, 39%)
HSVhsv(237, 69%, 60%)
CMYKcmyk(69.1%, 65.1%, 0%, 40.4%)
CIE-LABlab(27.89, 30.95, -54.93)
CIE-LCHlch(27.89, 63.04, 299.40°)
OKLaboklab(39.09% 0.0103 -0.1585)
OKLCHoklch(39.09% 0.159 273.7)
XYZxyz(8.1110, 5.4168, 30.3178)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3598 #98922F
analogous
#2F6A98 #2F3598 #5E2F98
triadic
#2F3598 #982F35 #35982F
tetradic
#2F3598 #982F6A #98922F #2F985E
square
#2F3598 #982F6A #98922F #2F985E
split-complementary
#2F3598 #985E2F #6A982F
monochromatic
#12143B #212569 #2F3598 #4048C4 #6F75D2

Accessibility & contrast

On white

10.08
#2F3598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F3598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3598
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3598#FFFFFF#000000##FFFFFF
##2F35981.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3598;
/* rgb */ color: rgb(47, 53, 152);
/* oklch */ color: oklch(39.1% 0.159 273.7);
Tailwind
colors: {
  custom: {
    50: '#766cb7',
    500: '#2f3598',
    950: '#000000',
  },
}
SCSS
$custom: #2f3598;
$custom-light: #766cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3598",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 152
  },
  "hsl": {
    "h": 236.571,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39092,
    "c": 0.15884,
    "h": 273.7
  },
  "luminance": 0.05418
}

Semantic roles & 50–950 ramp

primary
#2F3598
secondary
#BAB569
accent
#D44CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #2F3598

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

Preview Lab → · Contrast checker → · Palette generator →

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