#2F298A#2F298A

#2F298A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.155 H 277.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2F298A
RGBrgb(47, 41, 138)
HSLhsl(244, 54%, 35%)
HSVhsv(244, 70%, 54%)
CMYKcmyk(65.9%, 70.3%, 0%, 45.9%)
CIE-LABlab(23.75, 33.66, -53.06)
CIE-LCHlch(23.75, 62.83, 302.39°)
OKLaboklab(35.69% 0.0212 -0.1531)
OKLCHoklch(35.69% 0.155 277.9)
XYZxyz(6.5512, 4.0247, 24.4714)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F298A #848A29
analogous
#29548A #2F298A #5F298A
triadic
#2F298A #8A2F29 #298A2F
tetradic
#2F298A #8A2954 #848A29 #298A5F
square
#2F298A #8A2954 #848A29 #298A5F
split-complementary
#2F298A #8A5F29 #548A29
monochromatic
#0F0D2C #1F1B5B #2F298A #3F37B9 #655ECF

Accessibility & contrast

On white

11.63
#2F298A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F298A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F298A
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F298A#FFFFFF#000000##FFFFFF
##2F298A1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f298a;
/* rgb */ color: rgb(47, 41, 138);
/* oklch */ color: oklch(35.7% 0.155 277.9);
Tailwind
colors: {
  custom: {
    50: '#7464ad',
    500: '#2f298a',
    950: '#000000',
  },
}
SCSS
$custom: #2f298a;
$custom-light: #7464ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f298a",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 243.711,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35692,
    "c": 0.15454,
    "h": 277.9
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#2F298A
secondary
#AFB55A
accent
#DE4AD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F298A

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

Preview Lab → · Contrast checker → · Palette generator →

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