#2F3A89#2F3A89

#2F3A89 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.131 H 272.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2F3A89
RGBrgb(47, 58, 137)
HSLhsl(233, 49%, 36%)
HSVhsv(233, 66%, 54%)
CMYKcmyk(65.7%, 57.7%, 0%, 46.3%)
CIE-LABlab(27.94, 22.15, -45.60)
CIE-LCHlch(27.94, 50.70, 295.90°)
OKLaboklab(38.74% 0.0062 -0.1311)
OKLCHoklch(38.74% 0.131 272.7)
XYZxyz(7.1992, 5.4360, 24.3319)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A89 #897E2F
analogous
#2F6789 #2F3A89 #512F89
triadic
#2F3A89 #892F3A #3A892F
tetradic
#2F3A89 #892F67 #897E2F #2F8951
square
#2F3A89 #892F67 #897E2F #2F8951
split-complementary
#2F3A89 #89512F #67892F
monochromatic
#10132E #1F275B #2F3A89 #3F4DB7 #6774CB

Accessibility & contrast

On white

10.06
#2F3A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F3A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A89
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A89#FFFFFF#000000##FFFFFF
##2F3A891.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3a89;
/* rgb */ color: rgb(47, 58, 137);
/* oklch */ color: oklch(38.7% 0.131 272.7);
Tailwind
colors: {
  custom: {
    50: '#7270ac',
    500: '#2f3a89',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a89;
$custom-light: #7270ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a89",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 137
  },
  "hsl": {
    "h": 232.667,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38742,
    "c": 0.13124,
    "h": 272.7
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

primary
#2F3A89
secondary
#B2A862
accent
#C84FD8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3A89

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

Preview Lab → · Contrast checker → · Palette generator →

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