#2F4097#2F4097

#2F4097 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.143 H 270.5°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#2F4097
RGBrgb(47, 64, 151)
HSLhsl(230, 53%, 39%)
HSVhsv(230, 69%, 59%)
CMYKcmyk(68.9%, 57.6%, 0%, 40.8%)
CIE-LABlab(30.65, 23.29, -49.82)
CIE-LCHlch(30.65, 54.99, 295.06°)
OKLaboklab(41.11% 0.0012 -0.1434)
OKLCHoklch(41.11% 0.143 270.5)
XYZxyz(8.5897, 6.5047, 30.0750)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4097 #97862F
analogous
#2F7497 #2F4097 #522F97
triadic
#2F4097 #972F40 #40972F
tetradic
#2F4097 #972F74 #97862F #2F9752
square
#2F4097 #972F74 #97862F #2F9752
split-complementary
#2F4097 #97522F #74972F
monochromatic
#12183A #202C68 #2F4097 #4055C3 #6E7FD2

Accessibility & contrast

On white

9.13
#2F4097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F4097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4097
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4097#FFFFFF#000000##FFFFFF
##2F40971.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4097;
/* rgb */ color: rgb(47, 64, 151);
/* oklch */ color: oklch(41.1% 0.143 270.5);
Tailwind
colors: {
  custom: {
    50: '#7574b6',
    500: '#2f4097',
    950: '#000000',
  },
}
SCSS
$custom: #2f4097;
$custom-light: #7574b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4097",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 230.192,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4111,
    "c": 0.1434,
    "h": 270.5
  },
  "luminance": 0.06505
}

Semantic roles & 50–950 ramp

primary
#2F4097
secondary
#B9AC68
accent
#C44CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4097

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

Preview Lab → · Contrast checker → · Palette generator →

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