#2F2898#2F2898

#2F2898 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.174 H 276.4°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2F2898
RGBrgb(47, 40, 152)
HSLhsl(244, 58%, 38%)
HSVhsv(244, 74%, 60%)
CMYKcmyk(69.1%, 73.7%, 0%, 40.4%)
CIE-LABlab(24.92, 39.02, -59.81)
CIE-LCHlch(24.92, 71.41, 303.12°)
OKLaboklab(36.94% 0.0194 -0.1728)
OKLCHoklch(36.94% 0.174 276.4)
XYZxyz(7.5967, 4.3882, 30.1463)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2898 #919828
analogous
#285998 #2F2898 #672898
triadic
#2F2898 #982F28 #28982F
tetradic
#2F2898 #982859 #919828 #289867
square
#2F2898 #982859 #919828 #289867
split-complementary
#2F2898 #986728 #599828
monochromatic
#110F37 #201B68 #2F2898 #3E35C8 #6B64D6

Accessibility & contrast

On white

11.18
#2F2898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F2898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2898
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2898#FFFFFF#000000##FFFFFF
##2F28981.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2898;
/* rgb */ color: rgb(47, 40, 152);
/* oklch */ color: oklch(36.9% 0.174 276.4);
Tailwind
colors: {
  custom: {
    50: '#7763b7',
    500: '#2f2898',
    950: '#000000',
  },
}
SCSS
$custom: #2f2898;
$custom-light: #7763b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2898",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 243.75,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36943,
    "c": 0.1739,
    "h": 276.4
  },
  "luminance": 0.04389
}

Semantic roles & 50–950 ramp

primary
#2F2898
secondary
#B6BC60
accent
#E246D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2898

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

Preview Lab → · Contrast checker → · Palette generator →

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