#2F306E#2F306E

#2F306E is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.105 H 278.7°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#2F306E
RGBrgb(47, 48, 110)
HSLhsl(239, 40%, 31%)
HSVhsv(239, 57%, 43%)
CMYKcmyk(57.3%, 56.4%, 0%, 56.9%)
CIE-LABlab(23.15, 19.14, -36.31)
CIE-LCHlch(23.15, 41.05, 297.79°)
OKLaboklab(34.51% 0.0158 -0.1038)
OKLCHoklch(34.51% 0.105 278.7)
XYZxyz(5.0428, 3.8437, 15.2250)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F306E #6E6D2F
analogous
#2F4F6E #2F306E #4D2F6E
triadic
#2F306E #6E2F30 #306E2F
tetradic
#2F306E #6E2F4F #6E6D2F #2F6E4D
square
#2F306E #6E2F4F #6E6D2F #2F6E4D
split-complementary
#2F306E #6E4D2F #4F6E2F
monochromatic
#0A0B18 #1D1D43 #2F306E #414399 #5D5FBA

Accessibility & contrast

On white

11.87
#2F306E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F306E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F306E
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F306E#FFFFFF#000000##FFFFFF
##2F306E1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3A70
Deuteranopia (green-blind)
#01356D
Tritanopia (blue-blind)
#113E4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f306e;
/* rgb */ color: rgb(47, 48, 110);
/* oklch */ color: oklch(34.5% 0.105 278.7);
Tailwind
colors: {
  custom: {
    50: '#6d6898',
    500: '#2f306e',
    950: '#000000',
  },
}
SCSS
$custom: #2f306e;
$custom-light: #6d6898;
$custom-dark: #000000;
JSON
{
  "hex": "#2f306e",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 110
  },
  "hsl": {
    "h": 239.048,
    "s": 40.127,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34508,
    "c": 0.10505,
    "h": 278.7
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#2F306E
secondary
#9F9E59
accent
#CE58D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2F306E

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

Preview Lab → · Contrast checker → · Palette generator →

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