#2F4090#2F4090

#2F4090 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.133 H 270.3°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#2F4090
RGBrgb(47, 64, 144)
HSLhsl(229, 51%, 37%)
HSVhsv(229, 67%, 56%)
CMYKcmyk(67.4%, 55.6%, 0%, 43.5%)
CIE-LABlab(30.12, 20.68, -46.40)
CIE-LCHlch(30.12, 50.80, 294.03°)
OKLaboklab(40.54% 0.0008 -0.1333)
OKLCHoklch(40.54% 0.133 270.3)
XYZxyz(8.0380, 6.2840, 27.1695)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4090 #907F2F
analogous
#2F7090 #2F4090 #4F2F90
triadic
#2F4090 #902F40 #40902F
tetradic
#2F4090 #902F70 #907F2F #2F904F
square
#2F4090 #902F70 #907F2F #2F904F
split-complementary
#2F4090 #904F2F #70902F
monochromatic
#111734 #202B62 #2F4090 #3E55BE #6B7CCF

Accessibility & contrast

On white

9.30
#2F4090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F4090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4090
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4090#FFFFFF#000000##FFFFFF
##2F40901.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044B93
Deuteranopia (green-blind)
#00438E
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f4090;
/* rgb */ color: rgb(47, 64, 144);
/* oklch */ color: oklch(40.5% 0.133 270.3);
Tailwind
colors: {
  custom: {
    50: '#7374b1',
    500: '#2f4090',
    950: '#000000',
  },
}
SCSS
$custom: #2f4090;
$custom-light: #7374b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4090",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 144
  },
  "hsl": {
    "h": 229.485,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40541,
    "c": 0.13335,
    "h": 270.3
  },
  "luminance": 0.06285
}

Semantic roles & 50–950 ramp

primary
#2F4090
secondary
#B6A865
accent
#C24EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4090

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

Preview Lab → · Contrast checker → · Palette generator →

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