#2F298C#2F298C

#2F298C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.157 H 277.6°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2F298C
RGBrgb(47, 41, 140)
HSLhsl(244, 55%, 35%)
HSVhsv(244, 71%, 55%)
CMYKcmyk(66.4%, 70.7%, 0%, 45.1%)
CIE-LABlab(23.94, 34.34, -53.99)
CIE-LCHlch(23.94, 63.99, 302.46°)
OKLaboklab(35.89% 0.0209 -0.1558)
OKLCHoklch(35.89% 0.157 277.6)
XYZxyz(6.6973, 4.0831, 25.2410)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F298C #868C29
analogous
#29558C #2F298C #60298C
triadic
#2F298C #8C2F29 #298C2F
tetradic
#2F298C #8C2955 #868C29 #298C60
square
#2F298C #8C2955 #868C29 #298C60
split-complementary
#2F298C #8C6029 #558C29
monochromatic
#0F0D2D #1F1B5D #2F298C #3F37BB #665FD0

Accessibility & contrast

On white

11.56
#2F298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F298C
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F298C#FFFFFF#000000##FFFFFF
##2F298C1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f298c;
/* rgb */ color: rgb(47, 41, 140);
/* oklch */ color: oklch(35.9% 0.157 277.6);
Tailwind
colors: {
  custom: {
    50: '#7464af',
    500: '#2f298c',
    950: '#000000',
  },
}
SCSS
$custom: #2f298c;
$custom-light: #7464af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f298c",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 243.636,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35888,
    "c": 0.1572,
    "h": 277.6
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F298C

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

Preview Lab → · Contrast checker → · Palette generator →

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