#2F4195#2F4195

#2F4195 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.1% C 0.139 H 270.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2F4195
RGBrgb(47, 65, 149)
HSLhsl(229, 52%, 38%)
HSVhsv(229, 68%, 58%)
CMYKcmyk(68.5%, 56.4%, 0%, 41.6%)
CIE-LABlab(30.77, 21.88, -48.41)
CIE-LCHlch(30.77, 53.12, 294.32°)
OKLaboklab(41.15% 0.0002 -0.1392)
OKLCHoklch(41.15% 0.139 270.1)
XYZxyz(8.4856, 6.5541, 29.2458)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4195 #95832F
analogous
#2F7495 #2F4195 #502F95
triadic
#2F4195 #952F41 #41952F
tetradic
#2F4195 #952F74 #95832F #2F9550
square
#2F4195 #952F74 #95832F #2F9550
split-complementary
#2F4195 #95502F #74952F
monochromatic
#121838 #202D66 #2F4195 #3F56C2 #6D7FD1

Accessibility & contrast

On white

9.09
#2F4195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F4195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4195
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4195#FFFFFF#000000##FFFFFF
##2F41951.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4195;
/* rgb */ color: rgb(47, 65, 149);
/* oklch */ color: oklch(41.1% 0.139 270.1);
Tailwind
colors: {
  custom: {
    50: '#7475b5',
    500: '#2f4195',
    950: '#000000',
  },
}
SCSS
$custom: #2f4195;
$custom-light: #7475b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4195",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 149
  },
  "hsl": {
    "h": 229.412,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4115,
    "c": 0.13923,
    "h": 270.1
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4195

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

Preview Lab → · Contrast checker → · Palette generator →

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