#2F3C90#2F3C90

#2F3C90 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.139 H 271.9°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2F3C90
RGBrgb(47, 60, 144)
HSLhsl(232, 51%, 37%)
HSVhsv(232, 67%, 56%)
CMYKcmyk(67.4%, 58.3%, 0%, 43.5%)
CIE-LABlab(29.03, 23.38, -48.17)
CIE-LCHlch(29.03, 53.54, 295.90°)
OKLaboklab(39.73% 0.0046 -0.1386)
OKLCHoklch(39.73% 0.139 271.9)
XYZxyz(7.8205, 5.8490, 27.0970)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C90 #90832F
analogous
#2F6C90 #2F3C90 #532F90
triadic
#2F3C90 #902F3C #3C902F
tetradic
#2F3C90 #902F6C #90832F #2F9053
square
#2F3C90 #902F6C #90832F #2F9053
split-complementary
#2F3C90 #90532F #6C902F
monochromatic
#111634 #202962 #2F3C90 #3E4FBE #6B78CF

Accessibility & contrast

On white

9.68
#2F3C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F3C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C90
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C90#FFFFFF#000000##FFFFFF
##2F3C901.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004993
Deuteranopia (green-blind)
#00408E
Tritanopia (blue-blind)
#005060
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3c90;
/* rgb */ color: rgb(47, 60, 144);
/* oklch */ color: oklch(39.7% 0.139 271.9);
Tailwind
colors: {
  custom: {
    50: '#7371b1',
    500: '#2f3c90',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c90;
$custom-light: #7371b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c90",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 144
  },
  "hsl": {
    "h": 231.959,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39725,
    "c": 0.13866,
    "h": 271.9
  },
  "luminance": 0.0585
}

Semantic roles & 50–950 ramp

primary
#2F3C90
secondary
#B6AB65
accent
#C74EDA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3C90

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

Preview Lab → · Contrast checker → · Palette generator →

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