#2F4095#2F4095

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

Color values

HEX#2F4095
RGBrgb(47, 64, 149)
HSLhsl(230, 52%, 38%)
HSVhsv(230, 68%, 58%)
CMYKcmyk(68.5%, 57%, 0%, 41.6%)
CIE-LABlab(30.50, 22.55, -48.85)
CIE-LCHlch(30.50, 53.80, 294.78°)
OKLaboklab(40.95% 0.0011 -0.1405)
OKLCHoklch(40.95% 0.141 270.4)
XYZxyz(8.4287, 6.4403, 29.2268)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4095 #95842F
analogous
#2F7395 #2F4095 #512F95
triadic
#2F4095 #952F40 #40952F
tetradic
#2F4095 #952F73 #95842F #2F9551
square
#2F4095 #952F73 #95842F #2F9551
split-complementary
#2F4095 #95512F #73952F
monochromatic
#121838 #202C66 #2F4095 #3F55C2 #6D7ED1

Accessibility & contrast

On white

9.18
#2F4095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F4095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4095
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4095#FFFFFF#000000##FFFFFF
##2F40951.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4095;
/* rgb */ color: rgb(47, 64, 149);
/* oklch */ color: oklch(40.9% 0.141 270.4);
Tailwind
colors: {
  custom: {
    50: '#7474b5',
    500: '#2f4095',
    950: '#000000',
  },
}
SCSS
$custom: #2f4095;
$custom-light: #7474b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4095",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 149
  },
  "hsl": {
    "h": 230,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40945,
    "c": 0.14055,
    "h": 270.4
  },
  "luminance": 0.06441
}

Semantic roles & 50–950 ramp

primary
#2F4095
secondary
#B8AB67
accent
#C44CDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4095

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

Preview Lab → · Contrast checker → · Palette generator →

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