#2F3C9F#2F3C9F

#2F3C9F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.160 H 271.6°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2F3C9F
RGBrgb(47, 60, 159)
HSLhsl(233, 54%, 40%)
HSVhsv(233, 70%, 62%)
CMYKcmyk(70.4%, 62.3%, 0%, 37.6%)
CIE-LABlab(30.25, 28.91, -55.33)
CIE-LCHlch(30.25, 62.43, 297.59°)
OKLaboklab(41.02% 0.0045 -0.1596)
OKLCHoklch(41.02% 0.16 271.6)
XYZxyz(9.0440, 6.3384, 33.5410)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C9F #9F922F
analogous
#2F749F #2F3C9F #5A2F9F
triadic
#2F3C9F #9F2F3C #3C9F2F
tetradic
#2F3C9F #9F2F74 #9F922F #2F9F5A
square
#2F3C9F #9F2F74 #9F922F #2F9F5A
split-complementary
#2F3C9F #9F5A2F #749F2F
monochromatic
#131841 #212A70 #2F3C9F #4453C8 #737ED6

Accessibility & contrast

On white

9.26
#2F3C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F3C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C9F
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C9F#FFFFFF#000000##FFFFFF
##2F3C9F1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3c9f;
/* rgb */ color: rgb(47, 60, 159);
/* oklch */ color: oklch(41.0% 0.160 271.6);
Tailwind
colors: {
  custom: {
    50: '#7771bc',
    500: '#2f3c9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c9f;
$custom-light: #7771bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c9f",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 159
  },
  "hsl": {
    "h": 233.036,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41015,
    "c": 0.1597,
    "h": 271.6
  },
  "luminance": 0.06339
}

Semantic roles & 50–950 ramp

primary
#2F3C9F
secondary
#BDB46D
accent
#CD4ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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