#2F3A9C#2F3A9C

#2F3A9C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.158 H 272.2°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2F3A9C
RGBrgb(47, 58, 156)
HSLhsl(234, 54%, 40%)
HSVhsv(234, 70%, 61%)
CMYKcmyk(69.9%, 62.8%, 0%, 38.8%)
CIE-LABlab(29.49, 29.13, -54.76)
CIE-LCHlch(29.49, 62.02, 298.01°)
OKLaboklab(40.37% 0.0062 -0.158)
OKLCHoklch(40.37% 0.158 272.2)
XYZxyz(8.6841, 6.0299, 32.1523)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A9C #9C912F
analogous
#2F719C #2F3A9C #5B2F9C
triadic
#2F3A9C #9C2F3A #3A9C2F
tetradic
#2F3A9C #9C2F71 #9C912F #2F9C5B
square
#2F3A9C #9C2F71 #9C912F #2F9C5B
split-complementary
#2F3A9C #9C5B2F #719C2F
monochromatic
#13173E #21296D #2F3A9C #424FC6 #717BD4

Accessibility & contrast

On white

9.52
#2F3A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F3A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A9C
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A9C#FFFFFF#000000##FFFFFF
##2F3A9C1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3a9c;
/* rgb */ color: rgb(47, 58, 156);
/* oklch */ color: oklch(40.4% 0.158 272.2);
Tailwind
colors: {
  custom: {
    50: '#7670ba',
    500: '#2f3a9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a9c;
$custom-light: #7670ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a9c",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 156
  },
  "hsl": {
    "h": 233.945,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40373,
    "c": 0.15809,
    "h": 272.2
  },
  "luminance": 0.06031
}

Semantic roles & 50–950 ramp

primary
#2F3A9C
secondary
#BCB46B
accent
#CE4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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