#2F4094#2F4094

#2F4094 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.139 H 270.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#2F4094
RGBrgb(47, 64, 148)
HSLhsl(230, 52%, 38%)
HSVhsv(230, 68%, 58%)
CMYKcmyk(68.2%, 56.8%, 0%, 42%)
CIE-LABlab(30.42, 22.18, -48.36)
CIE-LCHlch(30.42, 53.20, 294.64°)
OKLaboklab(40.86% 0.001 -0.1391)
OKLCHoklch(40.86% 0.139 270.4)
XYZxyz(8.3492, 6.4085, 28.8082)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4094 #94832F
analogous
#2F7294 #2F4094 #502F94
triadic
#2F4094 #942F40 #40942F
tetradic
#2F4094 #942F72 #94832F #2F9450
square
#2F4094 #942F72 #94832F #2F9450
split-complementary
#2F4094 #94502F #72942F
monochromatic
#111837 #202C66 #2F4094 #3E54C2 #6D7ED1

Accessibility & contrast

On white

9.20
#2F4094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F4094 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4094
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4094#FFFFFF#000000##FFFFFF
##2F40941.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4094;
/* rgb */ color: rgb(47, 64, 148);
/* oklch */ color: oklch(40.9% 0.139 270.4);
Tailwind
colors: {
  custom: {
    50: '#7474b4',
    500: '#2f4094',
    950: '#000000',
  },
}
SCSS
$custom: #2f4094;
$custom-light: #7474b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4094",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 148
  },
  "hsl": {
    "h": 229.901,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40864,
    "c": 0.13911,
    "h": 270.4
  },
  "luminance": 0.06409
}

Semantic roles & 50–950 ramp

primary
#2F4094
secondary
#B8AA67
accent
#C34DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4094

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

Preview Lab → · Contrast checker → · Palette generator →

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