#2F3098#2F3098

#2F3098 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.165 H 274.9°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#2F3098
RGBrgb(47, 48, 152)
HSLhsl(239, 53%, 39%)
HSVhsv(239, 69%, 60%)
CMYKcmyk(69.1%, 68.4%, 0%, 40.4%)
CIE-LABlab(26.69, 34.15, -56.89)
CIE-LCHlch(26.69, 66.35, 300.97°)
OKLaboklab(38.22% 0.014 -0.1643)
OKLCHoklch(38.22% 0.165 274.9)
XYZxyz(7.8949, 4.9845, 30.2457)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3098 #98972F
analogous
#2F6598 #2F3098 #632F98
triadic
#2F3098 #982F30 #30982F
tetradic
#2F3098 #982F65 #98972F #2F9863
square
#2F3098 #982F65 #98972F #2F9863
split-complementary
#2F3098 #98632F #65982F
monochromatic
#12123B #212169 #2F3098 #4041C4 #6F70D2

Accessibility & contrast

On white

10.52
#2F3098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3098
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3098#FFFFFF#000000##FFFFFF
##2F30981.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3098;
/* rgb */ color: rgb(47, 48, 152);
/* oklch */ color: oklch(38.2% 0.165 274.9);
Tailwind
colors: {
  custom: {
    50: '#7669b7',
    500: '#2f3098',
    950: '#000000',
  },
}
SCSS
$custom: #2f3098;
$custom-light: #7669b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3098",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 152
  },
  "hsl": {
    "h": 239.429,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38218,
    "c": 0.16489,
    "h": 274.9
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

primary
#2F3098
secondary
#BAB969
accent
#DB4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F3098

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

Preview Lab → · Contrast checker → · Palette generator →

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