#2F3A94#2F3A94

#2F3A94 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.147 H 272.5°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#2F3A94
RGBrgb(47, 58, 148)
HSLhsl(233, 52%, 38%)
HSVhsv(233, 68%, 58%)
CMYKcmyk(68.2%, 60.8%, 0%, 42%)
CIE-LABlab(28.82, 26.20, -50.96)
CIE-LCHlch(28.82, 57.30, 297.21°)
OKLaboklab(39.67% 0.0064 -0.1468)
OKLCHoklch(39.67% 0.147 272.5)
XYZxyz(8.0289, 5.7678, 28.7014)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A94 #94892F
analogous
#2F6C94 #2F3A94 #562F94
triadic
#2F3A94 #942F3A #3A942F
tetradic
#2F3A94 #942F6C #94892F #2F9456
square
#2F3A94 #942F6C #94892F #2F9456
split-complementary
#2F3A94 #94562F #6C942F
monochromatic
#111637 #202866 #2F3A94 #3E4DC2 #6D78D1

Accessibility & contrast

On white

9.75
#2F3A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F3A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A94
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A94#FFFFFF#000000##FFFFFF
##2F3A941.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004997
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3a94;
/* rgb */ color: rgb(47, 58, 148);
/* oklch */ color: oklch(39.7% 0.147 272.5);
Tailwind
colors: {
  custom: {
    50: '#7470b4',
    500: '#2f3a94',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a94;
$custom-light: #7470b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a94",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 148
  },
  "hsl": {
    "h": 233.465,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3967,
    "c": 0.14698,
    "h": 272.5
  },
  "luminance": 0.05769
}

Semantic roles & 50–950 ramp

primary
#2F3A94
secondary
#B8AF67
accent
#CC4DDB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3A94

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

Preview Lab → · Contrast checker → · Palette generator →

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