#2F3C9A#2F3C9A

#2F3C9A is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.153 H 271.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2F3C9A
RGBrgb(47, 60, 154)
HSLhsl(233, 53%, 39%)
HSVhsv(233, 69%, 60%)
CMYKcmyk(69.5%, 61%, 0%, 39.6%)
CIE-LABlab(29.83, 27.08, -52.98)
CIE-LCHlch(29.83, 59.49, 297.07°)
OKLaboklab(40.58% 0.0046 -0.1527)
OKLCHoklch(40.58% 0.153 271.7)
XYZxyz(8.6189, 6.1683, 31.3020)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C9A #9A8D2F
analogous
#2F729A #2F3C9A #572F9A
triadic
#2F3C9A #9A2F3C #3C9A2F
tetradic
#2F3C9A #9A2F72 #9A8D2F #2F9A57
square
#2F3C9A #9A2F72 #9A8D2F #2F9A57
split-complementary
#2F3C9A #9A572F #729A2F
monochromatic
#12173C #212A6B #2F3C9A #4151C5 #707CD3

Accessibility & contrast

On white

9.40
#2F3C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F3C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C9A
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C9A#FFFFFF#000000##FFFFFF
##2F3C9A1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3c9a;
/* rgb */ color: rgb(47, 60, 154);
/* oklch */ color: oklch(40.6% 0.153 271.7);
Tailwind
colors: {
  custom: {
    50: '#7671b9',
    500: '#2f3c9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c9a;
$custom-light: #7671b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c9a",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 154
  },
  "hsl": {
    "h": 232.71,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40576,
    "c": 0.1528,
    "h": 271.7
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#2F3C9A
secondary
#BBB16A
accent
#CB4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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