#2F3C8C#2F3C8C

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

Color values

HEX#2F3C8C
RGBrgb(47, 60, 140)
HSLhsl(232, 50%, 37%)
HSVhsv(232, 66%, 55%)
CMYKcmyk(66.4%, 57.1%, 0%, 45.1%)
CIE-LABlab(28.72, 21.90, -46.20)
CIE-LCHlch(28.72, 51.13, 295.36°)
OKLaboklab(39.4% 0.0044 -0.1328)
OKLCHoklch(39.4% 0.133 271.9)
XYZxyz(7.5202, 5.7288, 25.5153)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C8C #8C7F2F
analogous
#2F6B8C #2F3C8C #512F8C
triadic
#2F3C8C #8C2F3C #3C8C2F
tetradic
#2F3C8C #8C2F6B #8C7F2F #2F8C51
square
#2F3C8C #8C2F6B #8C7F2F #2F8C51
split-complementary
#2F3C8C #8C512F #6B8C2F
monochromatic
#101530 #20285E #2F3C8C #3E50BA #6977CD

Accessibility & contrast

On white

9.79
#2F3C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3C8C
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C8C#FFFFFF#000000##FFFFFF
##2F3C8C1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3c8c;
/* rgb */ color: rgb(47, 60, 140);
/* oklch */ color: oklch(39.4% 0.133 271.9);
Tailwind
colors: {
  custom: {
    50: '#7371ae',
    500: '#2f3c8c',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c8c;
$custom-light: #7371ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c8c",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 140
  },
  "hsl": {
    "h": 231.613,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39395,
    "c": 0.1329,
    "h": 271.9
  },
  "luminance": 0.0573
}

Semantic roles & 50–950 ramp

primary
#2F3C8C
secondary
#B4A863
accent
#C64FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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