#2F3B8A#2F3B8A

#2F3B8A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.0% C 0.131 H 272.3°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#2F3B8A
RGBrgb(47, 59, 138)
HSLhsl(232, 49%, 36%)
HSVhsv(232, 66%, 54%)
CMYKcmyk(65.9%, 57.2%, 0%, 45.9%)
CIE-LABlab(28.29, 21.84, -45.66)
CIE-LCHlch(28.29, 50.61, 295.56°)
OKLaboklab(39.03% 0.0053 -0.1312)
OKLCHoklch(39.03% 0.131 272.3)
XYZxyz(7.3222, 5.5666, 24.7284)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3B8A #8A7E2F
analogous
#2F698A #2F3B8A #512F8A
triadic
#2F3B8A #8A2F3B #3B8A2F
tetradic
#2F3B8A #8A2F69 #8A7E2F #2F8A51
square
#2F3B8A #8A2F69 #8A7E2F #2F8A51
split-complementary
#2F3B8A #8A512F #698A2F
monochromatic
#10142F #1F275C #2F3B8A #3F4FB8 #6875CC

Accessibility & contrast

On white

9.94
#2F3B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2F3B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3B8A
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3B8A#FFFFFF#000000##FFFFFF
##2F3B8A1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3b8a;
/* rgb */ color: rgb(47, 59, 138);
/* oklch */ color: oklch(39.0% 0.131 272.3);
Tailwind
colors: {
  custom: {
    50: '#7270ad',
    500: '#2f3b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f3b8a;
$custom-light: #7270ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3b8a",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 232.088,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39027,
    "c": 0.13134,
    "h": 272.3
  },
  "luminance": 0.05567
}

Semantic roles & 50–950 ramp

primary
#2F3B8A
secondary
#B3A862
accent
#C74FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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