#2F3989#2F3989

#2F3989 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.5% C 0.133 H 273.1°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#2F3989
RGBrgb(47, 57, 137)
HSLhsl(233, 49%, 36%)
HSVhsv(233, 66%, 54%)
CMYKcmyk(65.7%, 58.4%, 0%, 46.3%)
CIE-LABlab(27.67, 22.82, -46.04)
CIE-LCHlch(27.67, 51.39, 296.37°)
OKLaboklab(38.54% 0.0072 -0.1324)
OKLCHoklch(38.54% 0.133 273.1)
XYZxyz(7.1493, 5.3361, 24.3153)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3989 #897F2F
analogous
#2F6689 #2F3989 #522F89
triadic
#2F3989 #892F39 #39892F
tetradic
#2F3989 #892F66 #897F2F #2F8952
square
#2F3989 #892F66 #897F2F #2F8952
split-complementary
#2F3989 #89522F #66892F
monochromatic
#10132E #1F265B #2F3989 #3F4CB7 #6772CB

Accessibility & contrast

On white

10.16
#2F3989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F3989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3989
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3989#FFFFFF#000000##FFFFFF
##2F39891.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3989;
/* rgb */ color: rgb(47, 57, 137);
/* oklch */ color: oklch(38.5% 0.133 273.1);
Tailwind
colors: {
  custom: {
    50: '#726fac',
    500: '#2f3989',
    950: '#000000',
  },
}
SCSS
$custom: #2f3989;
$custom-light: #726fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3989",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 137
  },
  "hsl": {
    "h": 233.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3854,
    "c": 0.13259,
    "h": 273.1
  },
  "luminance": 0.05337
}

Semantic roles & 50–950 ramp

primary
#2F3989
secondary
#B2A962
accent
#C94FD8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3989

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

Preview Lab → · Contrast checker → · Palette generator →

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