#2F3099#2F3099

#2F3099 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.166 H 274.8°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#2F3099
RGBrgb(47, 48, 153)
HSLhsl(239, 53%, 39%)
HSVhsv(239, 69%, 60%)
CMYKcmyk(69.3%, 68.6%, 0%, 40%)
CIE-LABlab(26.78, 34.50, -57.35)
CIE-LCHlch(26.78, 66.93, 301.03°)
OKLaboklab(38.32% 0.0139 -0.1656)
OKLCHoklch(38.32% 0.166 274.8)
XYZxyz(7.9771, 5.0174, 30.6789)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3099 #99982F
analogous
#2F6599 #2F3099 #632F99
triadic
#2F3099 #992F30 #30992F
tetradic
#2F3099 #992F65 #99982F #2F9963
square
#2F3099 #992F65 #99982F #2F9963
split-complementary
#2F3099 #99632F #65992F
monochromatic
#12133B #21216A #2F3099 #4142C5 #6F70D3

Accessibility & contrast

On white

10.48
#2F3099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F3099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3099
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3099#FFFFFF#000000##FFFFFF
##2F30991.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3099;
/* rgb */ color: rgb(47, 48, 153);
/* oklch */ color: oklch(38.3% 0.166 274.8);
Tailwind
colors: {
  custom: {
    50: '#7669b8',
    500: '#2f3099',
    950: '#000000',
  },
}
SCSS
$custom: #2f3099;
$custom-light: #7669b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3099",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 153
  },
  "hsl": {
    "h": 239.434,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38315,
    "c": 0.16622,
    "h": 274.8
  },
  "luminance": 0.05018
}

Semantic roles & 50–950 ramp

primary
#2F3099
secondary
#BABA69
accent
#DB4BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F3099

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

Preview Lab → · Contrast checker → · Palette generator →

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