#2F4098#2F4098

#2F4098 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.2% C 0.145 H 270.5°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#2F4098
RGBrgb(47, 64, 152)
HSLhsl(230, 53%, 39%)
HSVhsv(230, 69%, 60%)
CMYKcmyk(69.1%, 57.9%, 0%, 40.4%)
CIE-LABlab(30.73, 23.67, -50.30)
CIE-LCHlch(30.73, 55.59, 295.20°)
OKLaboklab(41.19% 0.0012 -0.1448)
OKLCHoklch(41.19% 0.145 270.5)
XYZxyz(8.6713, 6.5373, 30.5045)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4098 #98872F
analogous
#2F7598 #2F4098 #532F98
triadic
#2F4098 #982F40 #40982F
tetradic
#2F4098 #982F75 #98872F #2F9853
square
#2F4098 #982F75 #98872F #2F9853
split-complementary
#2F4098 #98532F #75982F
monochromatic
#12193B #212C69 #2F4098 #4056C4 #6F7FD2

Accessibility & contrast

On white

9.10
#2F4098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4098
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4098#FFFFFF#000000##FFFFFF
##2F40981.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4098;
/* rgb */ color: rgb(47, 64, 152);
/* oklch */ color: oklch(41.2% 0.145 270.5);
Tailwind
colors: {
  custom: {
    50: '#7574b7',
    500: '#2f4098',
    950: '#000000',
  },
}
SCSS
$custom: #2f4098;
$custom-light: #7574b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4098",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 230.286,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41193,
    "c": 0.14482,
    "h": 270.5
  },
  "luminance": 0.06538
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4098

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

Preview Lab → · Contrast checker → · Palette generator →

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