#2F3A98#2F3A98

#2F3A98 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.153 H 272.4°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2F3A98
RGBrgb(47, 58, 152)
HSLhsl(234, 53%, 39%)
HSVhsv(234, 69%, 60%)
CMYKcmyk(69.1%, 61.8%, 0%, 40.4%)
CIE-LABlab(29.15, 27.67, -52.87)
CIE-LCHlch(29.15, 59.67, 297.62°)
OKLaboklab(40.02% 0.0063 -0.1524)
OKLCHoklch(40.02% 0.153 272.4)
XYZxyz(8.3509, 5.8967, 30.3978)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A98 #988D2F
analogous
#2F6F98 #2F3A98 #592F98
triadic
#2F3A98 #982F3A #3A982F
tetradic
#2F3A98 #982F6F #988D2F #2F9859
square
#2F3A98 #982F6F #988D2F #2F9859
split-complementary
#2F3A98 #98592F #6F982F
monochromatic
#12163B #212869 #2F3A98 #404EC4 #6F79D2

Accessibility & contrast

On white

9.64
#2F3A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F3A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A98
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A98#FFFFFF#000000##FFFFFF
##2F3A981.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3a98;
/* rgb */ color: rgb(47, 58, 152);
/* oklch */ color: oklch(40.0% 0.153 272.4);
Tailwind
colors: {
  custom: {
    50: '#7570b7',
    500: '#2f3a98',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a98;
$custom-light: #7570b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a98",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 152
  },
  "hsl": {
    "h": 233.714,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40019,
    "c": 0.15257,
    "h": 272.4
  },
  "luminance": 0.05897
}

Semantic roles & 50–950 ramp

primary
#2F3A98
secondary
#BAB169
accent
#CD4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3A98

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

Preview Lab → · Contrast checker → · Palette generator →

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