#2F396E#2F396E

#2F396E is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.5% C 0.092 H 273.0°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2F396E
RGBrgb(47, 57, 110)
HSLhsl(230, 40%, 31%)
HSVhsv(230, 57%, 43%)
CMYKcmyk(57.3%, 48.2%, 0%, 56.9%)
CIE-LABlab(25.73, 12.92, -32.16)
CIE-LCHlch(25.73, 34.66, 291.88°)
OKLaboklab(36.46% 0.0048 -0.0916)
OKLCHoklch(36.46% 0.092 273)
XYZxyz(5.4490, 4.6560, 15.3604)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F396E #6E642F
analogous
#2F586E #2F396E #442F6E
triadic
#2F396E #6E2F39 #396E2F
tetradic
#2F396E #6E2F58 #6E642F #2F6E44
square
#2F396E #6E2F58 #6E642F #2F6E44
split-complementary
#2F396E #6E442F #586E2F
monochromatic
#0A0D18 #1D2343 #2F396E #414F99 #5D6CBA

Accessibility & contrast

On white

10.87
#2F396E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F396E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F396E
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F396E#FFFFFF#000000##FFFFFF
##2F396E1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214070
Deuteranopia (green-blind)
#1A3A6D
Tritanopia (blue-blind)
#0F454E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f396e;
/* rgb */ color: rgb(47, 57, 110);
/* oklch */ color: oklch(36.5% 0.092 273.0);
Tailwind
colors: {
  custom: {
    50: '#6d6f98',
    500: '#2f396e',
    950: '#000000',
  },
}
SCSS
$custom: #2f396e;
$custom-light: #6d6f98;
$custom-dark: #000000;
JSON
{
  "hex": "#2f396e",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 110
  },
  "hsl": {
    "h": 230.476,
    "s": 40.127,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36458,
    "c": 0.0917,
    "h": 273
  },
  "luminance": 0.04656
}

Semantic roles & 50–950 ramp

primary
#2F396E
secondary
#9F9459
accent
#BD58D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #2F396E

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

Preview Lab → · Contrast checker → · Palette generator →

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