#2F3D94#2F3D94

#2F3D94 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.143 H 271.5°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#2F3D94
RGBrgb(47, 61, 148)
HSLhsl(232, 52%, 38%)
HSVhsv(232, 68%, 58%)
CMYKcmyk(68.2%, 58.8%, 0%, 42%)
CIE-LABlab(29.61, 24.19, -49.67)
CIE-LCHlch(29.61, 55.25, 295.97°)
OKLaboklab(40.26% 0.0037 -0.143)
OKLCHoklch(40.26% 0.143 271.5)
XYZxyz(8.1845, 6.0792, 28.7533)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D94 #94862F
analogous
#2F6F94 #2F3D94 #532F94
triadic
#2F3D94 #942F3D #3D942F
tetradic
#2F3D94 #942F6F #94862F #2F9453
square
#2F3D94 #942F6F #94862F #2F9453
split-complementary
#2F3D94 #94532F #6F942F
monochromatic
#111737 #202A66 #2F3D94 #3E51C2 #6D7BD1

Accessibility & contrast

On white

9.48
#2F3D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F3D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D94
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D94#FFFFFF#000000##FFFFFF
##2F3D941.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A97
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3d94;
/* rgb */ color: rgb(47, 61, 148);
/* oklch */ color: oklch(40.3% 0.143 271.5);
Tailwind
colors: {
  custom: {
    50: '#7472b4',
    500: '#2f3d94',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d94;
$custom-light: #7472b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d94",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 148
  },
  "hsl": {
    "h": 231.683,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40259,
    "c": 0.14306,
    "h": 271.5
  },
  "luminance": 0.0608
}

Semantic roles & 50–950 ramp

primary
#2F3D94
secondary
#B8AD67
accent
#C74DDB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3D94

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

Preview Lab → · Contrast checker → · Palette generator →

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