#040225#040225

#040225 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.4% C 0.073 H 274.8°. Best body text is #FFFFFF at 20.18:1 contrast (WCAG AA passes).

Color values

HEX#040225
RGBrgb(4, 2, 37)
HSLhsl(243, 90%, 8%)
HSVhsv(243, 95%, 15%)
CMYKcmyk(89.2%, 94.6%, 0%, 85.5%)
CIE-LABlab(1.83, 8.72, -19.90)
CIE-LCHlch(1.83, 21.72, 293.66°)
OKLaboklab(13.45% 0.0062 -0.0732)
OKLCHoklch(13.45% 0.073 274.8)
XYZxyz(0.4056, 0.2028, 1.7677)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040225 #232502
analogous
#021125 #040225 #160225
triadic
#040225 #250402 #022504
tetradic
#040225 #250211 #232502 #022516
square
#040225 #250211 #232502 #022516
split-complementary
#040225 #251602 #112502
monochromatic
#03021D #03021D #040225 #0A055F #110899

Accessibility & contrast

On white

20.18
#040225 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#040225 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040225
20.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040225#FFFFFF#000000##FFFFFF
##0402251.0020.181.0420.18
#FFFFFF20.181.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000826
Deuteranopia (green-blind)
#000524
Tritanopia (blue-blind)
#000B12
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #040225;
/* rgb */ color: rgb(4, 2, 37);
/* oklch */ color: oklch(13.4% 0.073 274.8);
Tailwind
colors: {
  custom: {
    50: '#48475f',
    500: '#040225',
    950: '#000000',
  },
}
SCSS
$custom: #040225;
$custom-light: #48475f;
$custom-dark: #000000;
JSON
{
  "hex": "#040225",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 37
  },
  "hsl": {
    "h": 243.429,
    "s": 89.744,
    "l": 7.647
  },
  "oklch": {
    "l": 0.13449,
    "c": 0.07349,
    "h": 274.8
  },
  "luminance": 0.00203
}

Semantic roles & 50–950 ramp

primary
#040225
secondary
#666A18
accent
#FF29F3
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #040225

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

Preview Lab → · Contrast checker → · Palette generator →

#040225 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva