#2F298E#2F298E

#2F298E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.160 H 277.4°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2F298E
RGBrgb(47, 41, 142)
HSLhsl(244, 55%, 36%)
HSVhsv(244, 71%, 56%)
CMYKcmyk(66.9%, 71.1%, 0%, 44.3%)
CIE-LABlab(24.14, 35.03, -54.92)
CIE-LCHlch(24.14, 65.14, 302.53°)
OKLaboklab(36.09% 0.0205 -0.1585)
OKLCHoklch(36.09% 0.16 277.4)
XYZxyz(6.8461, 4.1426, 26.0248)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F298E #888E29
analogous
#29558E #2F298E #61298E
triadic
#2F298E #8E2F29 #298E2F
tetradic
#2F298E #8E2955 #888E29 #298E61
square
#2F298E #8E2955 #888E29 #298E61
split-complementary
#2F298E #8E6129 #558E29
monochromatic
#100E2F #1F1B5F #2F298E #3F37BD #6760D1

Accessibility & contrast

On white

11.48
#2F298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F298E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F298E#FFFFFF#000000##FFFFFF
##2F298E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f298e;
/* rgb */ color: rgb(47, 41, 142);
/* oklch */ color: oklch(36.1% 0.160 277.4);
Tailwind
colors: {
  custom: {
    50: '#7564b0',
    500: '#2f298e',
    950: '#000000',
  },
}
SCSS
$custom: #2f298e;
$custom-light: #7564b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f298e",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 243.564,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36086,
    "c": 0.15985,
    "h": 277.4
  },
  "luminance": 0.04143
}

Semantic roles & 50–950 ramp

primary
#2F298E
secondary
#B1B75C
accent
#DF49D6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2F298E

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

Preview Lab → · Contrast checker → · Palette generator →

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