#242F9F#242F9F

#242F9F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.178 H 270.4°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#242F9F
RGBrgb(36, 47, 159)
HSLhsl(235, 63%, 38%)
HSVhsv(235, 77%, 62%)
CMYKcmyk(77.4%, 70.4%, 0%, 37.6%)
CIE-LABlab(26.48, 36.03, -61.54)
CIE-LCHlch(26.48, 71.31, 300.35°)
OKLaboklab(38.1% 0.0013 -0.1781)
OKLCHoklch(38.1% 0.178 270.4)
XYZxyz(7.9999, 4.9104, 33.3204)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F9F #9F9424
analogous
#246C9F #242F9F #56249F
triadic
#242F9F #9F242F #2F9F24
tetradic
#242F9F #9F246C #9F9424 #249F56
square
#242F9F #9F246C #9F9424 #249F56
split-complementary
#242F9F #9F5624 #6C9F24
monochromatic
#0D113B #19206D #242F9F #303ED0 #626DDB

Accessibility & contrast

On white

10.59
#242F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#242F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F9F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F9F#FFFFFF#000000##FFFFFF
##242F9F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #242f9f;
/* rgb */ color: rgb(36, 47, 159);
/* oklch */ color: oklch(38.1% 0.178 270.4);
Tailwind
colors: {
  custom: {
    50: '#7468bc',
    500: '#242f9f',
    950: '#000000',
  },
}
SCSS
$custom: #242f9f;
$custom-light: #7468bc;
$custom-dark: #000000;
JSON
{
  "hex": "#242f9f",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 234.634,
    "s": 63.077,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38095,
    "c": 0.17814,
    "h": 270.4
  },
  "luminance": 0.04911
}

Semantic roles & 50–950 ramp

primary
#242F9F
secondary
#C1B85E
accent
#D742E6
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #242F9F

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

Preview Lab → · Contrast checker → · Palette generator →

#242F9F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva