#2F3C8A#2F3C8A

#2F3C8A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.130 H 271.9°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2F3C8A
RGBrgb(47, 60, 138)
HSLhsl(231, 49%, 36%)
HSVhsv(231, 66%, 54%)
CMYKcmyk(65.9%, 56.5%, 0%, 45.9%)
CIE-LABlab(28.57, 21.16, -45.22)
CIE-LCHlch(28.57, 49.92, 295.08°)
OKLaboklab(39.23% 0.0043 -0.1299)
OKLCHoklch(39.23% 0.13 271.9)
XYZxyz(7.3741, 5.6704, 24.7457)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C8A #8A7D2F
analogous
#2F6A8A #2F3C8A #502F8A
triadic
#2F3C8A #8A2F3C #3C8A2F
tetradic
#2F3C8A #8A2F6A #8A7D2F #2F8A50
square
#2F3C8A #8A2F6A #8A7D2F #2F8A50
split-complementary
#2F3C8A #8A502F #6A8A2F
monochromatic
#10142F #1F285C #2F3C8A #3F50B8 #6876CC

Accessibility & contrast

On white

9.84
#2F3C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F3C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C8A
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C8A#FFFFFF#000000##FFFFFF
##2F3C8A1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3c8a;
/* rgb */ color: rgb(47, 60, 138);
/* oklch */ color: oklch(39.2% 0.130 271.9);
Tailwind
colors: {
  custom: {
    50: '#7271ad',
    500: '#2f3c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c8a;
$custom-light: #7271ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c8a",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 231.429,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39232,
    "c": 0.12998,
    "h": 271.9
  },
  "luminance": 0.05671
}

Semantic roles & 50–950 ramp

primary
#2F3C8A
secondary
#B3A762
accent
#C54FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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