#2F4290#2F4290

#2F4290 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.131 H 269.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2F4290
RGBrgb(47, 66, 144)
HSLhsl(228, 51%, 37%)
HSVhsv(228, 67%, 56%)
CMYKcmyk(67.4%, 54.2%, 0%, 43.5%)
CIE-LABlab(30.67, 19.33, -45.50)
CIE-LCHlch(30.67, 49.44, 293.02°)
OKLaboklab(40.96% -0.0011 -0.1307)
OKLCHoklch(40.96% 0.131 269.5)
XYZxyz(8.1528, 6.5136, 27.2078)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4290 #907D2F
analogous
#2F7390 #2F4290 #4C2F90
triadic
#2F4290 #902F42 #42902F
tetradic
#2F4290 #902F73 #907D2F #2F904C
square
#2F4290 #902F73 #907D2F #2F904C
split-complementary
#2F4290 #904C2F #73902F
monochromatic
#111834 #202D62 #2F4290 #3E57BE #6B7ECF

Accessibility & contrast

On white

9.12
#2F4290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F4290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4290
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4290#FFFFFF#000000##FFFFFF
##2F42901.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4D93
Deuteranopia (green-blind)
#00448E
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4290;
/* rgb */ color: rgb(47, 66, 144);
/* oklch */ color: oklch(41.0% 0.131 269.5);
Tailwind
colors: {
  custom: {
    50: '#7376b1',
    500: '#2f4290',
    950: '#000000',
  },
}
SCSS
$custom: #2f4290;
$custom-light: #7376b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4290",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 144
  },
  "hsl": {
    "h": 228.247,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40959,
    "c": 0.13068,
    "h": 269.5
  },
  "luminance": 0.06514
}

Semantic roles & 50–950 ramp

primary
#2F4290
secondary
#B6A665
accent
#BF4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4290

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

Preview Lab → · Contrast checker → · Palette generator →

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