#2F3A86#2F3A86

#2F3A86 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.5% C 0.127 H 272.8°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2F3A86
RGBrgb(47, 58, 134)
HSLhsl(232, 48%, 35%)
HSVhsv(232, 65%, 53%)
CMYKcmyk(64.9%, 56.7%, 0%, 47.5%)
CIE-LABlab(27.71, 21.04, -44.11)
CIE-LCHlch(27.71, 48.87, 295.50°)
OKLaboklab(38.5% 0.0061 -0.1267)
OKLCHoklch(38.5% 0.127 272.8)
XYZxyz(6.9870, 5.3511, 23.2143)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A86 #867B2F
analogous
#2F6586 #2F3A86 #4F2F86
triadic
#2F3A86 #862F3A #3A862F
tetradic
#2F3A86 #862F65 #867B2F #2F864F
square
#2F3A86 #862F65 #867B2F #2F864F
split-complementary
#2F3A86 #864F2F #65862F
monochromatic
#0F132B #1F2659 #2F3A86 #3F4EB3 #6673C9

Accessibility & contrast

On white

10.14
#2F3A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3A86
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A86#FFFFFF#000000##FFFFFF
##2F3A861.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3a86;
/* rgb */ color: rgb(47, 58, 134);
/* oklch */ color: oklch(38.5% 0.127 272.8);
Tailwind
colors: {
  custom: {
    50: '#7170aa',
    500: '#2f3a86',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a86;
$custom-light: #7170aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a86",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 134
  },
  "hsl": {
    "h": 232.414,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38497,
    "c": 0.12685,
    "h": 272.8
  },
  "luminance": 0.05352
}

Semantic roles & 50–950 ramp

primary
#2F3A86
secondary
#B0A660
accent
#C750D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3A86

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

Preview Lab → · Contrast checker → · Palette generator →

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