#2F2F98#2F2F98

#2F2F98 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.166 H 275.1°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2F2F98
RGBrgb(47, 47, 152)
HSLhsl(240, 53%, 39%)
HSVhsv(240, 69%, 60%)
CMYKcmyk(69.1%, 69.1%, 0%, 40.4%)
CIE-LABlab(26.46, 34.77, -57.27)
CIE-LCHlch(26.46, 67.00, 301.26°)
OKLaboklab(38.05% 0.0148 -0.1654)
OKLCHoklch(38.05% 0.166 275.1)
XYZxyz(7.8544, 4.9037, 30.2323)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F98 #98982F
analogous
#2F6498 #2F2F98 #642F98
triadic
#2F2F98 #982F2F #2F982F
tetradic
#2F2F98 #982F64 #98982F #2F9864
square
#2F2F98 #982F64 #98982F #2F9864
split-complementary
#2F2F98 #98642F #64982F
monochromatic
#12123B #212169 #2F2F98 #4040C4 #6F6FD2

Accessibility & contrast

On white

10.60
#2F2F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F2F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F98
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F98#FFFFFF#000000##FFFFFF
##2F2F981.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2f98;
/* rgb */ color: rgb(47, 47, 152);
/* oklch */ color: oklch(38.0% 0.166 275.1);
Tailwind
colors: {
  custom: {
    50: '#7668b7',
    500: '#2f2f98',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f98;
$custom-light: #7668b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f98",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3805,
    "c": 0.16607,
    "h": 275.1
  },
  "luminance": 0.04904
}

Semantic roles & 50–950 ramp

primary
#2F2F98
secondary
#BABA69
accent
#DC4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2F98

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

Preview Lab → · Contrast checker → · Palette generator →

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