#2F3C8D#2F3C8D

#2F3C8D is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.134 H 271.9°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2F3C8D
RGBrgb(47, 60, 141)
HSLhsl(232, 50%, 37%)
HSVhsv(232, 67%, 55%)
CMYKcmyk(66.7%, 57.4%, 0%, 44.7%)
CIE-LABlab(28.79, 22.27, -46.70)
CIE-LCHlch(28.79, 51.74, 295.50°)
OKLaboklab(39.48% 0.0045 -0.1343)
OKLCHoklch(39.48% 0.134 271.9)
XYZxyz(7.5943, 5.7585, 25.9054)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C8D #8D802F
analogous
#2F6B8D #2F3C8D #512F8D
triadic
#2F3C8D #8D2F3C #3C8D2F
tetradic
#2F3C8D #8D2F6B #8D802F #2F8D51
square
#2F3C8D #8D2F6B #8D802F #2F8D51
split-complementary
#2F3C8D #8D512F #6B8D2F
monochromatic
#101531 #20285F #2F3C8D #3E50BB #6977CD

Accessibility & contrast

On white

9.76
#2F3C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F3C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C8D
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C8D#FFFFFF#000000##FFFFFF
##2F3C8D1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3c8d;
/* rgb */ color: rgb(47, 60, 141);
/* oklch */ color: oklch(39.5% 0.134 271.9);
Tailwind
colors: {
  custom: {
    50: '#7371af',
    500: '#2f3c8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c8d;
$custom-light: #7371af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c8d",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 141
  },
  "hsl": {
    "h": 231.702,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39477,
    "c": 0.13434,
    "h": 271.9
  },
  "luminance": 0.05759
}

Semantic roles & 50–950 ramp

primary
#2F3C8D
secondary
#B4A964
accent
#C64EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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