#2F3F98#2F3F98

#2F3F98 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.146 H 270.8°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#2F3F98
RGBrgb(47, 63, 152)
HSLhsl(231, 53%, 39%)
HSVhsv(231, 69%, 60%)
CMYKcmyk(69.1%, 58.6%, 0%, 40.4%)
CIE-LABlab(30.46, 24.34, -50.73)
CIE-LCHlch(30.46, 56.27, 295.63°)
OKLaboklab(40.99% 0.0021 -0.1461)
OKLCHoklch(40.99% 0.146 270.8)
XYZxyz(8.6154, 6.4255, 30.4859)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F98 #98882F
analogous
#2F7498 #2F3F98 #542F98
triadic
#2F3F98 #982F3F #3F982F
tetradic
#2F3F98 #982F74 #98882F #2F9854
square
#2F3F98 #982F74 #98882F #2F9854
split-complementary
#2F3F98 #98542F #74982F
monochromatic
#12183B #212C69 #2F3F98 #4054C4 #6F7ED2

Accessibility & contrast

On white

9.19
#2F3F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F3F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F98
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F98#FFFFFF#000000##FFFFFF
##2F3F981.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3f98;
/* rgb */ color: rgb(47, 63, 152);
/* oklch */ color: oklch(41.0% 0.146 270.8);
Tailwind
colors: {
  custom: {
    50: '#7573b7',
    500: '#2f3f98',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f98;
$custom-light: #7573b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f98",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 152
  },
  "hsl": {
    "h": 230.857,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40993,
    "c": 0.14612,
    "h": 270.8
  },
  "luminance": 0.06426
}

Semantic roles & 50–950 ramp

primary
#2F3F98
secondary
#BAAE69
accent
#C64CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3F98

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

Preview Lab → · Contrast checker → · Palette generator →

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