#2F3899#2F3899

#2F3899 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.7% C 0.156 H 272.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2F3899
RGBrgb(47, 56, 153)
HSLhsl(235, 53%, 39%)
HSVhsv(235, 69%, 60%)
CMYKcmyk(69.3%, 63.4%, 0%, 40%)
CIE-LABlab(28.73, 29.35, -54.17)
CIE-LCHlch(28.73, 61.61, 298.45°)
OKLaboklab(39.73% 0.0079 -0.1563)
OKLCHoklch(39.73% 0.156 272.9)
XYZxyz(8.3343, 5.7318, 30.7979)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3899 #99902F
analogous
#2F6D99 #2F3899 #5B2F99
triadic
#2F3899 #992F38 #38992F
tetradic
#2F3899 #992F6D #99902F #2F995B
square
#2F3899 #992F6D #99902F #2F995B
split-complementary
#2F3899 #995B2F #6D992F
monochromatic
#12163B #21276A #2F3899 #414CC5 #6F78D3

Accessibility & contrast

On white

9.78
#2F3899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F3899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3899
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3899#FFFFFF#000000##FFFFFF
##2F38991.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3899;
/* rgb */ color: rgb(47, 56, 153);
/* oklch */ color: oklch(39.7% 0.156 272.9);
Tailwind
colors: {
  custom: {
    50: '#766eb8',
    500: '#2f3899',
    950: '#000000',
  },
}
SCSS
$custom: #2f3899;
$custom-light: #766eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3899",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 234.906,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39732,
    "c": 0.15648,
    "h": 272.9
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#2F3899
secondary
#BAB469
accent
#D04BDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #2F3899

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

Preview Lab → · Contrast checker → · Palette generator →

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