#2F307B#2F307B

#2F307B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.125 H 277.4°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2F307B
RGBrgb(47, 48, 123)
HSLhsl(239, 45%, 33%)
HSVhsv(239, 62%, 48%)
CMYKcmyk(61.8%, 61%, 0%, 51.8%)
CIE-LABlab(24.15, 23.81, -42.98)
CIE-LCHlch(24.15, 49.13, 298.98°)
OKLaboklab(35.58% 0.0161 -0.1235)
OKLCHoklch(35.58% 0.125 277.4)
XYZxyz(5.8032, 4.1479, 19.2299)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F307B #7B7A2F
analogous
#2F567B #2F307B #542F7B
triadic
#2F307B #7B2F30 #307B2F
tetradic
#2F307B #7B2F56 #7B7A2F #2F7B54
square
#2F307B #7B2F56 #7B7A2F #2F7B54
split-complementary
#2F307B #7B542F #567B2F
monochromatic
#0D0D22 #1E1F4F #2F307B #4041A7 #6263C3

Accessibility & contrast

On white

11.48
#2F307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F307B
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F307B#FFFFFF#000000##FFFFFF
##2F307B1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f307b;
/* rgb */ color: rgb(47, 48, 123);
/* oklch */ color: oklch(35.6% 0.125 277.4);
Tailwind
colors: {
  custom: {
    50: '#7068a2',
    500: '#2f307b',
    950: '#000000',
  },
}
SCSS
$custom: #2f307b;
$custom-light: #7068a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f307b",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 239.211,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35576,
    "c": 0.12451,
    "h": 277.4
  },
  "luminance": 0.04148
}

Semantic roles & 50–950 ramp

primary
#2F307B
secondary
#AAA95C
accent
#D353D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F307B

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

Preview Lab → · Contrast checker → · Palette generator →

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