#2F3D98#2F3D98

#2F3D98 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.149 H 271.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#2F3D98
RGBrgb(47, 61, 152)
HSLhsl(232, 53%, 39%)
HSVhsv(232, 69%, 60%)
CMYKcmyk(69.1%, 59.9%, 0%, 40.4%)
CIE-LABlab(29.93, 25.67, -51.60)
CIE-LCHlch(29.93, 57.63, 296.45°)
OKLaboklab(40.6% 0.0038 -0.1487)
OKLCHoklch(40.6% 0.149 271.5)
XYZxyz(8.5066, 6.2080, 30.4496)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D98 #988A2F
analogous
#2F7298 #2F3D98 #562F98
triadic
#2F3D98 #982F3D #3D982F
tetradic
#2F3D98 #982F72 #988A2F #2F9856
square
#2F3D98 #982F72 #988A2F #2F9856
split-complementary
#2F3D98 #98562F #72982F
monochromatic
#12173B #212A69 #2F3D98 #4052C4 #6F7CD2

Accessibility & contrast

On white

9.37
#2F3D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F3D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D98
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D98#FFFFFF#000000##FFFFFF
##2F3D981.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3d98;
/* rgb */ color: rgb(47, 61, 152);
/* oklch */ color: oklch(40.6% 0.149 271.5);
Tailwind
colors: {
  custom: {
    50: '#7572b7',
    500: '#2f3d98',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d98;
$custom-light: #7572b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d98",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 152
  },
  "hsl": {
    "h": 232,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40598,
    "c": 0.14872,
    "h": 271.5
  },
  "luminance": 0.06209
}

Semantic roles & 50–950 ramp

primary
#2F3D98
secondary
#BAAF69
accent
#C94CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3D98

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

Preview Lab → · Contrast checker → · Palette generator →

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