#2F199E#2F199E

#2F199E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.195 H 277.5°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2F199E
RGBrgb(47, 25, 158)
HSLhsl(250, 73%, 36%)
HSVhsv(250, 84%, 62%)
CMYKcmyk(70.3%, 84.2%, 0%, 38%)
CIE-LABlab(22.89, 48.63, -66.84)
CIE-LCHlch(22.89, 82.66, 306.04°)
OKLaboklab(35.72% 0.0255 -0.1931)
OKLCHoklch(35.72% 0.195 277.5)
XYZxyz(7.6895, 3.7675, 32.6631)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F199E #889E19
analogous
#19459E #2F199E #71199E
triadic
#2F199E #9E2F19 #199E2F
tetradic
#2F199E #9E1945 #889E19 #199E71
square
#2F199E #9E1945 #889E19 #199E71
split-complementary
#2F199E #9E7119 #459E19
monochromatic
#100834 #1F1169 #2F199E #3F21D3 #674EE3

Accessibility & contrast

On white

11.98
#2F199E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F199E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F199E
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F199E#FFFFFF#000000##FFFFFF
##2F199E1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f199e;
/* rgb */ color: rgb(47, 25, 158);
/* oklch */ color: oklch(35.7% 0.195 277.5);
Tailwind
colors: {
  custom: {
    50: '#7a5bbc',
    500: '#2f199e',
    950: '#000000',
  },
}
SCSS
$custom: #2f199e;
$custom-light: #7a5bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f199e",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 158
  },
  "hsl": {
    "h": 249.925,
    "s": 72.678,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35719,
    "c": 0.19475,
    "h": 277.5
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#2F199E
secondary
#B1C54E
accent
#EF38D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F199E

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

Preview Lab → · Contrast checker → · Palette generator →

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