#2F3F94#2F3F94

#2F3F94 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.140 H 270.8°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2F3F94
RGBrgb(47, 63, 148)
HSLhsl(230, 52%, 38%)
HSVhsv(230, 68%, 58%)
CMYKcmyk(68.2%, 57.4%, 0%, 42%)
CIE-LABlab(30.15, 22.85, -48.80)
CIE-LCHlch(30.15, 53.89, 295.09°)
OKLaboklab(40.66% 0.0019 -0.1404)
OKLCHoklch(40.66% 0.14 270.8)
XYZxyz(8.2933, 6.2967, 28.7896)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F94 #94842F
analogous
#2F7194 #2F3F94 #512F94
triadic
#2F3F94 #942F3F #3F942F
tetradic
#2F3F94 #942F71 #94842F #2F9451
square
#2F3F94 #942F71 #94842F #2F9451
split-complementary
#2F3F94 #94512F #71942F
monochromatic
#111737 #202B66 #2F3F94 #3E53C2 #6D7DD1

Accessibility & contrast

On white

9.29
#2F3F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F3F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F94
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F94#FFFFFF#000000##FFFFFF
##2F3F941.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3f94;
/* rgb */ color: rgb(47, 63, 148);
/* oklch */ color: oklch(40.7% 0.140 270.8);
Tailwind
colors: {
  custom: {
    50: '#7473b4',
    500: '#2f3f94',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f94;
$custom-light: #7473b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f94",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 148
  },
  "hsl": {
    "h": 230.495,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4066,
    "c": 0.14043,
    "h": 270.8
  },
  "luminance": 0.06297
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3F94

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

Preview Lab → · Contrast checker → · Palette generator →

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