#2F3287#2F3287

#2F3287 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.139 H 275.7°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2F3287
RGBrgb(47, 50, 135)
HSLhsl(238, 48%, 36%)
HSVhsv(238, 65%, 53%)
CMYKcmyk(65.2%, 63%, 0%, 47.1%)
CIE-LABlab(25.67, 26.79, -48.06)
CIE-LCHlch(25.67, 55.02, 299.14°)
OKLaboklab(37% 0.0138 -0.1384)
OKLCHoklch(37% 0.139 275.7)
XYZxyz(6.6846, 4.6343, 23.4592)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3287 #87842F
analogous
#2F5E87 #2F3287 #582F87
triadic
#2F3287 #872F32 #32872F
tetradic
#2F3287 #872F5E #87842F #2F8758
square
#2F3287 #872F5E #87842F #2F8758
split-complementary
#2F3287 #87582F #5E872F
monochromatic
#0F102C #1F215A #2F3287 #3F43B4 #666ACA

Accessibility & contrast

On white

10.90
#2F3287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3287
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3287#FFFFFF#000000##FFFFFF
##2F32871.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f3287;
/* rgb */ color: rgb(47, 50, 135);
/* oklch */ color: oklch(37.0% 0.139 275.7);
Tailwind
colors: {
  custom: {
    50: '#726aab',
    500: '#2f3287',
    950: '#000000',
  },
}
SCSS
$custom: #2f3287;
$custom-light: #726aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3287",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 237.955,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37003,
    "c": 0.13907,
    "h": 275.7
  },
  "luminance": 0.04635
}

Semantic roles & 50–950 ramp

primary
#2F3287
secondary
#B1AE61
accent
#D350D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F3287

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

Preview Lab → · Contrast checker → · Palette generator →

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