#2F4091#2F4091

#2F4091 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.135 H 270.4°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#2F4091
RGBrgb(47, 64, 145)
HSLhsl(230, 51%, 38%)
HSVhsv(230, 68%, 57%)
CMYKcmyk(67.6%, 55.9%, 0%, 43.1%)
CIE-LABlab(30.19, 21.06, -46.89)
CIE-LCHlch(30.19, 51.40, 294.18°)
OKLaboklab(40.62% 0.0009 -0.1348)
OKLCHoklch(40.62% 0.135 270.4)
XYZxyz(8.1148, 6.3147, 27.5738)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4091 #91802F
analogous
#2F7191 #2F4091 #4F2F91
triadic
#2F4091 #912F40 #40912F
tetradic
#2F4091 #912F71 #91802F #2F914F
square
#2F4091 #912F71 #91802F #2F914F
split-complementary
#2F4091 #914F2F #71912F
monochromatic
#111735 #202C63 #2F4091 #3E54BF #6B7DCF

Accessibility & contrast

On white

9.28
#2F4091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4091
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4091#FFFFFF#000000##FFFFFF
##2F40911.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014C94
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#005362
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f4091;
/* rgb */ color: rgb(47, 64, 145);
/* oklch */ color: oklch(40.6% 0.135 270.4);
Tailwind
colors: {
  custom: {
    50: '#7374b2',
    500: '#2f4091',
    950: '#000000',
  },
}
SCSS
$custom: #2f4091;
$custom-light: #7374b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4091",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 145
  },
  "hsl": {
    "h": 229.592,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40621,
    "c": 0.13479,
    "h": 270.4
  },
  "luminance": 0.06315
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4091

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

Preview Lab → · Contrast checker → · Palette generator →

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