#2F4099#2F4099

#2F4099 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.146 H 270.5°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2F4099
RGBrgb(47, 64, 153)
HSLhsl(230, 53%, 39%)
HSVhsv(230, 69%, 60%)
CMYKcmyk(69.3%, 58.2%, 0%, 40%)
CIE-LABlab(30.81, 24.04, -50.78)
CIE-LCHlch(30.81, 56.18, 295.33°)
OKLaboklab(41.28% 0.0012 -0.1462)
OKLCHoklch(41.28% 0.146 270.5)
XYZxyz(8.7535, 6.5702, 30.9377)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4099 #99882F
analogous
#2F7599 #2F4099 #532F99
triadic
#2F4099 #992F40 #40992F
tetradic
#2F4099 #992F75 #99882F #2F9953
square
#2F4099 #992F75 #99882F #2F9953
split-complementary
#2F4099 #99532F #75992F
monochromatic
#12193B #212C6A #2F4099 #4156C5 #6F7FD3

Accessibility & contrast

On white

9.07
#2F4099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F4099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4099
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4099#FFFFFF#000000##FFFFFF
##2F40991.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4099;
/* rgb */ color: rgb(47, 64, 153);
/* oklch */ color: oklch(41.3% 0.146 270.5);
Tailwind
colors: {
  custom: {
    50: '#7574b8',
    500: '#2f4099',
    950: '#000000',
  },
}
SCSS
$custom: #2f4099;
$custom-light: #7574b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4099",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 153
  },
  "hsl": {
    "h": 230.377,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41276,
    "c": 0.14624,
    "h": 270.5
  },
  "luminance": 0.06571
}

Semantic roles & 50–950 ramp

primary
#2F4099
secondary
#BAAD69
accent
#C54BDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4099

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

Preview Lab → · Contrast checker → · Palette generator →

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