#2F3F99#2F3F99

#2F3F99 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.148 H 270.8°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#2F3F99
RGBrgb(47, 63, 153)
HSLhsl(231, 53%, 39%)
HSVhsv(231, 69%, 60%)
CMYKcmyk(69.3%, 58.8%, 0%, 40%)
CIE-LABlab(30.54, 24.71, -51.22)
CIE-LCHlch(30.54, 56.86, 295.75°)
OKLaboklab(41.08% 0.0021 -0.1475)
OKLCHoklch(41.08% 0.148 270.8)
XYZxyz(8.6976, 6.4584, 30.9191)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F99 #99892F
analogous
#2F7499 #2F3F99 #542F99
triadic
#2F3F99 #992F3F #3F992F
tetradic
#2F3F99 #992F74 #99892F #2F9954
square
#2F3F99 #992F74 #99892F #2F9954
split-complementary
#2F3F99 #99542F #74992F
monochromatic
#12183B #212C6A #2F3F99 #4155C5 #6F7ED3

Accessibility & contrast

On white

9.16
#2F3F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F3F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F99
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F99#FFFFFF#000000##FFFFFF
##2F3F991.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3f99;
/* rgb */ color: rgb(47, 63, 153);
/* oklch */ color: oklch(41.1% 0.148 270.8);
Tailwind
colors: {
  custom: {
    50: '#7573b8',
    500: '#2f3f99',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f99;
$custom-light: #7573b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f99",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 230.943,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41077,
    "c": 0.14753,
    "h": 270.8
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

primary
#2F3F99
secondary
#BAAE69
accent
#C74BDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3F99

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

Preview Lab → · Contrast checker → · Palette generator →

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