#2F3A99#2F3A99

#2F3A99 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.154 H 272.3°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2F3A99
RGBrgb(47, 58, 153)
HSLhsl(234, 53%, 39%)
HSVhsv(234, 69%, 60%)
CMYKcmyk(69.3%, 62.1%, 0%, 40%)
CIE-LABlab(29.23, 28.03, -53.34)
CIE-LCHlch(29.23, 60.26, 297.72°)
OKLaboklab(40.11% 0.0063 -0.1538)
OKLCHoklch(40.11% 0.154 272.3)
XYZxyz(8.4332, 5.9296, 30.8309)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A99 #998E2F
analogous
#2F6F99 #2F3A99 #592F99
triadic
#2F3A99 #992F3A #3A992F
tetradic
#2F3A99 #992F6F #998E2F #2F9959
square
#2F3A99 #992F6F #998E2F #2F9959
split-complementary
#2F3A99 #99592F #6F992F
monochromatic
#12173B #21286A #2F3A99 #414EC5 #6F7AD3

Accessibility & contrast

On white

9.61
#2F3A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F3A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A99
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A99#FFFFFF#000000##FFFFFF
##2F3A991.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3a99;
/* rgb */ color: rgb(47, 58, 153);
/* oklch */ color: oklch(40.1% 0.154 272.3);
Tailwind
colors: {
  custom: {
    50: '#7670b8',
    500: '#2f3a99',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a99;
$custom-light: #7670b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a99",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 153
  },
  "hsl": {
    "h": 233.774,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40107,
    "c": 0.15396,
    "h": 272.3
  },
  "luminance": 0.0593
}

Semantic roles & 50–950 ramp

primary
#2F3A99
secondary
#BAB269
accent
#CD4BDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3A99

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

Preview Lab → · Contrast checker → · Palette generator →

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