#2F3D89#2F3D89

#2F3D89 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.127 H 271.5°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2F3D89
RGBrgb(47, 61, 137)
HSLhsl(231, 49%, 36%)
HSVhsv(231, 66%, 54%)
CMYKcmyk(65.7%, 55.5%, 0%, 46.3%)
CIE-LABlab(28.77, 20.11, -44.27)
CIE-LCHlch(28.77, 48.63, 294.43°)
OKLaboklab(39.36% 0.0033 -0.1271)
OKLCHoklch(39.36% 0.127 271.5)
XYZxyz(7.3549, 5.7473, 24.3838)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D89 #897B2F
analogous
#2F6A89 #2F3D89 #4E2F89
triadic
#2F3D89 #892F3D #3D892F
tetradic
#2F3D89 #892F6A #897B2F #2F894E
square
#2F3D89 #892F6A #897B2F #2F894E
split-complementary
#2F3D89 #894E2F #6A892F
monochromatic
#10142E #1F295B #2F3D89 #3F51B7 #6777CB

Accessibility & contrast

On white

9.77
#2F3D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3D89
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D89#FFFFFF#000000##FFFFFF
##2F3D891.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07488C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3d89;
/* rgb */ color: rgb(47, 61, 137);
/* oklch */ color: oklch(39.4% 0.127 271.5);
Tailwind
colors: {
  custom: {
    50: '#7272ac',
    500: '#2f3d89',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d89;
$custom-light: #7272ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d89",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 137
  },
  "hsl": {
    "h": 230.667,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39359,
    "c": 0.12716,
    "h": 271.5
  },
  "luminance": 0.05748
}

Semantic roles & 50–950 ramp

primary
#2F3D89
secondary
#B2A662
accent
#C34FD8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3D89

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

Preview Lab → · Contrast checker → · Palette generator →

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