#2F3C99#2F3C99

#2F3C99 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.151 H 271.7°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2F3C99
RGBrgb(47, 60, 153)
HSLhsl(233, 53%, 39%)
HSVhsv(233, 69%, 60%)
CMYKcmyk(69.3%, 60.8%, 0%, 40%)
CIE-LABlab(29.75, 26.71, -52.50)
CIE-LCHlch(29.75, 58.90, 296.96°)
OKLaboklab(40.49% 0.0046 -0.1513)
OKLCHoklch(40.49% 0.151 271.7)
XYZxyz(8.5360, 6.1352, 30.8652)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C99 #998C2F
analogous
#2F7199 #2F3C99 #572F99
triadic
#2F3C99 #992F3C #3C992F
tetradic
#2F3C99 #992F71 #998C2F #2F9957
square
#2F3C99 #992F71 #998C2F #2F9957
split-complementary
#2F3C99 #99572F #71992F
monochromatic
#12173B #212A6A #2F3C99 #4151C5 #6F7CD3

Accessibility & contrast

On white

9.43
#2F3C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F3C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C99
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C99#FFFFFF#000000##FFFFFF
##2F3C991.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3c99;
/* rgb */ color: rgb(47, 60, 153);
/* oklch */ color: oklch(40.5% 0.151 271.7);
Tailwind
colors: {
  custom: {
    50: '#7571b8',
    500: '#2f3c99',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c99;
$custom-light: #7571b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c99",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 153
  },
  "hsl": {
    "h": 232.642,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40489,
    "c": 0.1514,
    "h": 271.7
  },
  "luminance": 0.06136
}

Semantic roles & 50–950 ramp

primary
#2F3C99
secondary
#BAB069
accent
#CB4BDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3C99

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

Preview Lab → · Contrast checker → · Palette generator →

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