#2F3A9A#2F3A9A

#2F3A9A is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.155 H 272.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2F3A9A
RGBrgb(47, 58, 154)
HSLhsl(234, 53%, 39%)
HSVhsv(234, 69%, 60%)
CMYKcmyk(69.5%, 62.3%, 0%, 39.6%)
CIE-LABlab(29.32, 28.40, -53.81)
CIE-LCHlch(29.32, 60.85, 297.82°)
OKLaboklab(40.2% 0.0062 -0.1552)
OKLCHoklch(40.2% 0.155 272.3)
XYZxyz(8.5161, 5.9627, 31.2677)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A9A #9A8F2F
analogous
#2F709A #2F3A9A #5A2F9A
triadic
#2F3A9A #9A2F3A #3A9A2F
tetradic
#2F3A9A #9A2F70 #9A8F2F #2F9A5A
square
#2F3A9A #9A2F70 #9A8F2F #2F9A5A
split-complementary
#2F3A9A #9A5A2F #709A2F
monochromatic
#12173C #21286B #2F3A9A #414FC5 #707AD3

Accessibility & contrast

On white

9.58
#2F3A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F3A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A9A
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A9A#FFFFFF#000000##FFFFFF
##2F3A9A1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3a9a;
/* rgb */ color: rgb(47, 58, 154);
/* oklch */ color: oklch(40.2% 0.155 272.3);
Tailwind
colors: {
  custom: {
    50: '#7670b9',
    500: '#2f3a9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a9a;
$custom-light: #7670b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a9a",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 154
  },
  "hsl": {
    "h": 233.832,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40195,
    "c": 0.15534,
    "h": 272.3
  },
  "luminance": 0.05964
}

Semantic roles & 50–950 ramp

primary
#2F3A9A
secondary
#BBB36A
accent
#CE4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #2F3A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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