#2F298D#2F298D

#2F298D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.159 H 277.5°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2F298D
RGBrgb(47, 41, 141)
HSLhsl(244, 55%, 36%)
HSVhsv(244, 71%, 55%)
CMYKcmyk(66.7%, 70.9%, 0%, 44.7%)
CIE-LABlab(24.04, 34.69, -54.45)
CIE-LCHlch(24.04, 64.56, 302.50°)
OKLaboklab(35.99% 0.0207 -0.1572)
OKLCHoklch(35.99% 0.159 277.5)
XYZxyz(6.7714, 4.1127, 25.6311)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F298D #878D29
analogous
#29558D #2F298D #61298D
triadic
#2F298D #8D2F29 #298D2F
tetradic
#2F298D #8D2955 #878D29 #298D61
square
#2F298D #8D2955 #878D29 #298D61
split-complementary
#2F298D #8D6129 #558D29
monochromatic
#0F0D2E #1F1B5E #2F298D #3F37BC #6660D1

Accessibility & contrast

On white

11.52
#2F298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F298D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F298D#FFFFFF#000000##FFFFFF
##2F298D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f298d;
/* rgb */ color: rgb(47, 41, 141);
/* oklch */ color: oklch(36.0% 0.159 277.5);
Tailwind
colors: {
  custom: {
    50: '#7464af',
    500: '#2f298d',
    950: '#000000',
  },
}
SCSS
$custom: #2f298d;
$custom-light: #7464af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f298d",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 243.6,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35987,
    "c": 0.15853,
    "h": 277.5
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

primary
#2F298D
secondary
#B1B65B
accent
#DE4AD5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F298D

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

Preview Lab → · Contrast checker → · Palette generator →

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