#041FAB#041FAB

#041FAB is a dark, highly saturated blue. Relative luminance 0.039; OKLCH L 36.1% C 0.215 H 264.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#041FAB
RGBrgb(4, 31, 171)
HSLhsl(230, 95%, 34%)
HSVhsv(230, 98%, 67%)
CMYKcmyk(97.7%, 81.9%, 0%, 32.9%)
CIE-LABlab(23.49, 47.89, -73.79)
CIE-LCHlch(23.49, 87.97, 302.98°)
OKLaboklab(36.06% -0.02 -0.2139)
OKLCHoklch(36.06% 0.215 264.7)
XYZxyz(7.8882, 3.9450, 38.8659)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041FAB #AB9004
analogous
#0473AB #041FAB #3C04AB
triadic
#041FAB #AB041F #1FAB04
tetradic
#041FAB #AB0473 #AB9004 #04AB3C
square
#041FAB #AB0473 #AB9004 #04AB3C
split-complementary
#041FAB #AB3C04 #73AB04
monochromatic
#010933 #03146F #041FAB #052AE7 #2F50FA

Accessibility & contrast

On white

11.74
#041FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#041FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041FAB
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041FAB#FFFFFF#000000##FFFFFF
##041FAB1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AF
Deuteranopia (green-blind)
#002FA9
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #041fab;
/* rgb */ color: rgb(4, 31, 171);
/* oklch */ color: oklch(36.1% 0.215 264.7);
Tailwind
colors: {
  custom: {
    50: '#725ec6',
    500: '#041fab',
    950: '#000000',
  },
}
SCSS
$custom: #041fab;
$custom-light: #725ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#041fab",
  "rgb": {
    "r": 4,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 230.299,
    "s": 95.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36061,
    "c": 0.21485,
    "h": 264.7
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#041FAB
secondary
#D7BC34
accent
#DC29FF
background
#F7F5FC
surface
#EEE9F8
border
#C9C5D1
text
#0A0413
muted
#7C7982

Preview Lab

Preview with #041FAB

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

Preview Lab → · Contrast checker → · Palette generator →

#041FAB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva