#2F307A#2F307A

#2F307A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.123 H 277.5°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2F307A
RGBrgb(47, 48, 122)
HSLhsl(239, 44%, 33%)
HSVhsv(239, 61%, 48%)
CMYKcmyk(61.5%, 60.7%, 0%, 52.2%)
CIE-LABlab(24.07, 23.45, -42.48)
CIE-LCHlch(24.07, 48.52, 298.90°)
OKLaboklab(35.49% 0.0161 -0.122)
OKLCHoklch(35.49% 0.123 277.5)
XYZxyz(5.7410, 4.1230, 18.9019)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F307A #7A792F
analogous
#2F557A #2F307A #532F7A
triadic
#2F307A #7A2F30 #307A2F
tetradic
#2F307A #7A2F55 #7A792F #2F7A53
square
#2F307A #7A2F55 #7A792F #2F7A53
split-complementary
#2F307A #7A532F #557A2F
monochromatic
#0D0D22 #1E1F4E #2F307A #4041A6 #6162C2

Accessibility & contrast

On white

11.51
#2F307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F307A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F307A
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F307A#FFFFFF#000000##FFFFFF
##2F307A1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f307a;
/* rgb */ color: rgb(47, 48, 122);
/* oklch */ color: oklch(35.5% 0.123 277.5);
Tailwind
colors: {
  custom: {
    50: '#7068a1',
    500: '#2f307a',
    950: '#000000',
  },
}
SCSS
$custom: #2f307a;
$custom-light: #7068a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f307a",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 239.2,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35491,
    "c": 0.12305,
    "h": 277.5
  },
  "luminance": 0.04123
}

Semantic roles & 50–950 ramp

primary
#2F307A
secondary
#A9A85C
accent
#D254D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F307A

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

Preview Lab → · Contrast checker → · Palette generator →

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